Beginners (Page 78)

Infinite loop while attempting to read char by char until end of line
//Reads in digits for an array. int getFactors (int ary , ifstream &inFile) { char k = '0'...
[11 replies] Last: Perfect. Thank you and thanks for the reference. Definitely need to do... (by jdwright)
by davez
need help here
i was able to create a program that displays the highest and lowest value of the inputted number ...
[3 replies] Last: @Sherre02 Yeah, looks to be doing the same as my pseudocode. A very ... (by kemort)
[Help] Nested for loop
Can someone please explain to me the logic of nested for loop statement? Im just a newbie. #...
[7 replies] Last: oops (by kemort)
Key Presses
How would one wait for a key press let's say "P" to do something in the program but the program mus...
[1 reply] : yes its possible , this is what you see in video games. The enemies k... (by vxk)
by a1tn
Virtual static function that differs with each derived class?
What I am trying to do is have a variable that can be accessed statically (i.e. Error::code) but eac...
[2 replies] Last: Thank you very much JLBorges (by a1tn)
by Jhub
nested loops
I am writing this program that will simulate the roll of a dice. The user inputs the number of roll...
[2 replies] Last: the results still do not seem correct? #include <iostream> #include... (by Jhub)
Issue reading info from file.
Hey all. Writing a little program to help me with EVE online. SPREADSHEETS, WOO. Anyway, having a pr...
[16 replies] Last: Ya, that explains why my last attempt last night didn't work. Heh. My ... (by Raezzor)
Homework assignment I'm stuck on
I can't seem to get the void calcAverage part to work. can anyone help me. this is what my instruct...
[2 replies] Last: Now when you call the calcAverage function, you have it looking to rec... (by sherre02)
While loop if statements problem
How do I solve this? I can't get out of the loop. Every time I change my code around, something else...
[2 replies] Last: #include <iostream> #include <string> using namespace std; int mai... (by sherre02)
Need a little help
I am taking a fundamental C++ course for the first time and seem to be having trouble. The teacher i...
[4 replies] Last: #include <iostream> #include <stdlib.h> using namespace std; int ma... (by kemort)
What is the purpose of these arguements in main: "argc" and "argv"?
I have seen certain codes with these arguments inside the parameters of the main function. int ma...
[7 replies] Last: The arguments are a way to get user input without having to prompt the... (by admkrk)
Big O of recursive functions.
Hey guys I have several functions that I'm not sure if I got the big O for them correct. Ok for th...
[2 replies] Last: They're actually all linearithmic. Besides the time to perform the use... (by helios)
Counting sort on Int array of 1 million+
Hello, I am trying to read a file of more than 1 million ints and use counting sort to sort it (I'm ...
[1 reply] : You can't create an array on the stack whose size is a variable or dep... (by helios)
by Jhub
loops and more loops plus a little probability
I have trying to write this code for days now with little success. I am trying to create a code tha...
[5 replies] Last: I finally understand what I need to do let's suppose hold at number i... (by Jhub)
by wooly
Swap 2 numbers without temp variable! Please help!
I am working on an assignment and I need help with swapping 2 numbers without the use of a temporary...
[5 replies] Last: Try the following example, it should work. #include <iostream> #inc... (by Victor89)
Using a char arrays that change inside class members (1,2)
EDITED and UPDATED On Sept 27 at 2PM I am currently trying to make a tic tac toe game that uses c...
[22 replies] Last: Mostly syntax errors like: error C2143: syntax error : missing ')' be... (by tamirat)
by Ch1156
Why is this not working?
Ok so I am making something in SFGUI but there is one thing that isnt working, this line: source(...
[10 replies] Last: Ok I got it working, I added CropSprite in the beginning of UserInput(... (by Ch1156)
classes and arrays combined
I'm a bit confused with arrays with classes in them how would I let's say we have a list of boxes ho...
[2 replies] Last: search all of them for it until you find it. Now I kinda know how than... (by Tristan101)
Divide by zero workaround not working(basic C++ calc)
Hi, I just started learning C++ the day before yesterday. I am attemptinng to create a basic calcul...
[9 replies] Last: Use a switch statement for your menu of selecting the operation (by novellof)
Pages: 1... 7677787980... 122
  Archived months: [aug2014]

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