User stops loop.
-
Hi, I'm fairly new to C++ and I have a tricky problem with a program I am writing. I have a loop in place to it keeps showing the data, but I would like a way for the user to be able to stop that. I have got a snippet of code to pause a program, and want to see if i can use it for this. void pause() { std::string response; std::getline(std::cin, response); goto (whatever); } Basically, as you can tell, when the user presses enter, the program goes to another point. or at least I think it does. Any help would be much obliged.
-
Hi, I'm fairly new to C++ and I have a tricky problem with a program I am writing. I have a loop in place to it keeps showing the data, but I would like a way for the user to be able to stop that. I have got a snippet of code to pause a program, and want to see if i can use it for this. void pause() { std::string response; std::getline(std::cin, response); goto (whatever); } Basically, as you can tell, when the user presses enter, the program goes to another point. or at least I think it does. Any help would be much obliged.
You need to post your question in the Visual C++ forum. You only get C++/CLI (.NET Framework) answers here!
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
You need to post your question in the Visual C++ forum. You only get C++/CLI (.NET Framework) answers here!
"We make a living by what we get, we make a life by what we give." --Winston Churchill
OK!