online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> int main() { std::string a=""; std::cout<<"Podaj dwie litery: "; while (std::getline(std::cin, a) && a != "stop") { unsigned int start=0, stop=0; switch (a.length()) { case 3: start = (int)a[0]; stop = (int)a[2]; break; case 2: start = (int)a[0]; stop = (int)a[1]; break; case 1: start = stop = (int)a[0]; break; } if (start > stop) start ^= stop ^= start ^= stop; for (int i = start; i <= stop; i++) std::cout << char(i); std::cout << std::endl; std::cout<<"Podaj dwie litery: "; } 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