General C++ Programming (Page 6)

help please
Anyone know why this doesn't program doesn't work? #include <iostream> #include <fstream> #include...
[1 reply] : Please, describe the " doesn't work " with more details. (by keskiverto)
by anup30
extract COMBINATIONS to vector
hello. int ar = {1,2,3,4,5,6,7,8,9}; i have to take 5 numbers(any order) each time so total comb...
[4 replies] Last: in mathematics they are normally written nCr : Combination of taking r... (by anup30)
Help With Output - Arrays, Pointers, Functions
Hey all, my assignment was to write a program that asks a user for the number of inputs that they wa...
[1 reply] : That's pretty nice code. It's easy to read, well organized and does wh... (by dhayden)
how to count number of operation for below equation- total=(X*(x-2))/3 if x=8 total= 16 there ...
[2 replies] Last: ya, actually the formula is something else, i was just practicing to t... (by sshorme)
file wont print out
How come when i open the file output nothing is there? file.close(); fstream output; ...
[2 replies] Last: First of all, you should ALWAYS test the stream first: if(!output) {... (by Seag)
Comparing elements in 2-dimens. array
Hello everybody, I'm trying to improve my C++ skills on my own, So I need a little bit help, Hope y...
[no replies]
Multiple account login problems
How can I be able to use more than one account? Please Help! **Updated** Code: #include <iostream> ...
[14 replies] Last: ok, now I need a way to be able to have more than one account usable, ... (by jasonwynn10)
Colition Detector
I am creating a sandbox game right now. My game currently has a structure that says whether you can ...
[no replies]
Hamming code help
1 )Determine if there’s an incorrect bit, and if so, where it is. 2) Display CORRECT code 3)...
[no replies]
by Myna
C++ array
I need help writing a lottery program that generates 5 non duplicate numbers that is between 1 and 2...
[3 replies] Last: Disclaimer: I am a beginner. #include <iostream> #include <stdlib.h> ... (by swp147)
File I/O not recognizing contents correctly
Hello, so I have a program that's not doing what I want it to do. This is the assignment: The nt...
[2 replies] Last: Yeah, making small functions help a lot. Thanks! (by NewatCplusplus)
by yoga79
Plotting the Velocity Data
Hi all.. I am a beginner in C++ programming, and i want to learn about C++ seriously.. I want to...
[no replies]
Drums fans
Hey drums fans, Can you test my app that i created with C and SDL library ! I need your notice...
[no replies]
Free() function behaviour
C language question struct node { unsigned char g; }; int main(void) { struct node* x = (node*...
[6 replies] Last: I cared about that unsigned char g in there Memory should only be fr... (by dhayden)
What's wrong with the initializer?
I am trying to create a `std::map` from `std:: string` to a pointer to member function type. I'm ini...
[4 replies] Last: #include <string> #include <map> #include <functional> struct A { ... (by JLBorges)
logical Circuit
I am getting error in If statement after (k nor i) "!&" need a ')'. But i Don't know how to fix this...
[5 replies] Last: Thanks All. It's good now (by sshorme)
Both if and else staments are being performed?
I've come across an annoying bug where both my if statement and the following else statement are bei...
[4 replies] Last: If you have multiple objects you probably end up in the else part for... (by wh1t3crayon)
URGENT just freezes and shuts down?
Alright let's say my program takes in input and puts it into an output.bin file. How would I take th...
[no replies]
Bubblesorting an Array
Hi I'd like to modify this code so that there is 1000 numbers instead of 100, and that they're sorte...
[2 replies] Last: How could you change this program so that the programmer can choose to... (by nicoleborg7)
Interpreting GDB output
Been working on a Seg fault for a while now, I've run my program through Valgrind and GDB, I'm havin...
[2 replies] Last: Well, I'm using std::unordered_map<std::string, Component*>::find . T... (by dabbertorres)
Pages: 1... 45678... 63
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.