Member • Aug 24, 2008
C ++ Programing Challenge: Complete the code
The following program will act as a guessing game in which the user has eight tries to guess a randomly generated number. The program will tell the user each time whether he guessed high or low:
#include#include using namespace std; int main() { int number=rand()___; int guess=-1; int trycount=0; while(guess__number __ trycount<8) { cout__"Please enter a guess: "; cin__guess; __(guess_number) cout<<"Too low"< Those who want to scratch your brain and improve your C++ programming skills - discuss the problems.
Those who need spoon feeding, get the solution at the puzzle source.