online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <string> using namespace std; char caesar(char); int main() { string input; do { cout << "Enter cipertext and press enter to continue." << endl; cout << "Enter blank line to quit." << endl; getline(cin, input); string output = ""; for (int x = 0; x < input.length(); x++) { output += caesar(input[x]); } cout << output << endl; } while (!input.length() == 0); } //end main char caesar(char c) { if (isalpha(c)) { c = toupper(c); //use upper to keep from having to use two seperate for A..Z a..z c = (((c - 65) + 13) % 26) + 65; } //if c isn't alpha, just send it back. return c; }

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