Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@RememberMe I was ranting but have choosen wrong type of post. Question: Why some developers are technology impaired?
-
Basicly, i was tired of adding one of these statements at the end to hang the program console so it does not shut down.
-
@aviophile yeah I agree that gets pretty annoying. I use a debug macro that the compiler defines when compiling in debug/release mode to switch it on or off automatically when using Visual Studio.
VS defines the _DEBUG macro when in debug mode, you can use this to automatically switch on/off the cin.get()
Similar tricks for other compilers (I think NDEBUG macro is portable) -
then use an external cmd instance and start it from there
or simply write only std::cin.get(); there isn't really any point in that infinite while thingy -
@Krokoklemme you dare tell me leave visual studio play button and use command line like peasants? Never!
while(1) ;
Std::cin.get()
I am tired of these when learning cpp. Unnecesary rant!
question