online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Listing 17.9 - Using peek() and putback() #include <iostream> using namespace std; int main() { char ch; cout << "enter a phrase: "; while ((ch = cin.get()) != EOF) { if (ch == '!') cin.putback('$'); else cout << ch; while (cin.peek() == '#') cin.ignore(1,'#'); } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue