Posted by: KaLaNkIsThAn October 18, 2004
Login in to Rate this Post:
0
?
![](/wysiwyg/editor/images/smiley/msn/thumbs_up.gif)
![10 more flags than likes deactivates post.](/wysiwyg/editor/images/smiley/msn/thumbs_down.gif)
dananah le hasaayo... hehe. Mero ni scene gaayeb bho yaar. hehe.
RF bru, I think I know what you are talking about now...
Is the output going to be something like this? (I haven't worked on it)
****
Is your guess 10
answer: n
Is your guess 9
answer: y
Wow my guess is right
Want me to guess again?
new_answer: y
Is your guess 10
answer: n
Is your guess 9
answer: n
Is your guess 8
answer:y
Wow my guess is right
Want me to guess again?
new_answer: n
(quit the program)
*****
If thats how the output is going to look like, then you need to initialize another char variable, (new_answer).
Use the while loop right before the forloop.
code: while (new_answer!= 'n')
then put everything starting from forloop inside the while loop.
after that "cheated" part ask the user if he wants to play again. scan the value like you did before. then CLOSE the while loop...
Should give the output like I showed above... hehe... Otherwise we have to wake up sajha C++ gurus SM Sainju and echoes bro. :D:D:D Good luck.