hi im relatively new to c++ coding but wrote a program that is supposed to ask the user for a number between 0 and 500. The program generates a random number as well and tells the user if their guess is higher or lower than the random variable.
For this i used two loops beginning with while, and they do work but when i run the program sometimes after a number of guesses it randomly returns itself to 0. could anyone suggest any reasons why??
Hi guys , i m a beginner in c++ , i was trying to create a simple program that prints any random line for infinity times without interruption .. but it has to abort if the user wants ,say ( he can press any key to abort).
i encounter a problem that the program was stopping to take an i/p every time it get into the loop.... that is undesireable .....
plz help me out to solve this problem....
I would expect that i would get solution very soon