diff --git a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm index 998b070f848..4697ba53684 100644 --- a/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm +++ b/doc/org.eclipse.cdt.doc.user/getting_started/cdt_w_debug.htm @@ -104,7 +104,7 @@ examining the contents of variables.
The output in the helloworld.exe application window is: "You just entered m, you need to enter m to exit." +
The output in the helloworld.exe application window is: "Thank you. Exiting."
HelloWorld!<< endl; + cout << "HelloWorld!" << endl; char input = 'i'; - cout <<
To exit, press 'm'<< endl; + cout << "To exit, press 'm' then the 'Enter' key." << endl; + cin >> input; while(input != 'm') { + cout << "You just entered '" << input << "'. " + << "You need to enter 'm' to exit." << endl; cin >> input; - cout <<
You just entered<< input - <<
you need to enter m to exit.<< endl; } - exit(0); + cout << "Thank you. Exiting." << endl; + return 0; }