System pause function for linux
Hi,
Is there "Pause" function in the linux operation system. i heard that its only possible in Windows operating system and not in linux. can i use cin.get in C++. i have also heard that using System Pause can cause damage to your system and its unsafe programming practice.
Thank you
Re: System pause function for linux
Pause will a program before it exits. but i dont understood why its so popular, but it will make your job easier. when your IDE won't wait as you test a program and as soon as the program finished the window closes taking all your data with it. You can usecin.get(), All you have to do is press RETURN and your program continues.
Re: System pause function for linux
I dont think its possible using "PAUSE" system command in linux. I dont think its possible in a C/C++ compiler distribution which has getch(), unless you use ncurses, which is typically available on Linux systems. don't use ncurses unless I really, really need some special screen functionality but don't need a full-fledged GUI program.