Hi i need help in C please. I need to run a loop until i press a key, any key doesnt matter. The loop needs to execute until i decide to press a key, not wait each cycle for me to press a key. If someone can help id appreciate thanx
What operating system are you using, and what compiler? If Windows, is it a Windows application or a console application?
I can write the cod by C++ take ... .. .. while(!cin.eof()) { .. ... ... .. int n; cout<<"Please Enter a value or EOF to stop"<<endl; cin>>n; } //EOF in visual c++ ctrl+Z //EOF in Linux c++ ctrl+d