Search found 5 matches

Return to advanced search

Re: Problem with functions in "guess a number" game.

I have been listening to your advices, but I'm not sure if I get it correctly. Anyway here is the mildly updated code. I made some fixes, but I can't say i completely understood the errors in my code. #include<iostream> #include<ctime> #include<cstdlib> using namespace std; void in...
by zlass
on Thu Sep 15, 2011 12:00 pm
 
Forum: C and C++
Topic: Problem with functions in "guess a number" game.
Comments: 6
Views: 6620

Re: Problem with functions in "guess a number" game.

Thanks for the feedback! I got those problems solved, and a couple of syntax errors i noticed along the way. It still isn't working however, and I'm not sure what the compiler is complaining about. So i figured I'd paste it here: highlow.cpp:41: error: cannot resolve overloaded function ‘max’ based ...
by zlass
on Sat Sep 10, 2011 5:18 am
 
Forum: C and C++
Topic: Problem with functions in "guess a number" game.
Comments: 6
Views: 6620

Re: c++ program i made. Having a problem.

Took a hell of a long time for me to answer, but yes your tip worked. Got it working properly so thanks. :)
by zlass
on Fri Sep 09, 2011 5:16 pm
 
Forum: C and C++
Topic: c++ program i made. Having a problem.
Comments: 3
Views: 6350

Problem with functions in "guess a number" game.

Hello. I am learning c++, and i have done some small game projects already (highlow, rock papers osv), but i am new to the idea of using functions in a program. So i decided to try and *up* one of my earlier projects by implementing some new features and using functions instead of pushing it all in ...
by zlass
on Fri Sep 09, 2011 3:43 pm
 
Forum: C and C++
Topic: Problem with functions in "guess a number" game.
Comments: 6
Views: 6620

c++ program i made. Having a problem.

// implement square() without using the multiplication operator; that is, do the // x*x by repeated addition (start a variable result at 0 and add x to it x times). //Then run some version of "the first program" using that square(). #include<iostream> using namespace std; in...
by zlass
on Thu Jun 09, 2011 2:09 pm
 
Forum: C and C++
Topic: c++ program i made. Having a problem.
Comments: 3
Views: 6350

Return to advanced search