online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> #include <string> using namespace std; int main() { int ctr=0; char str_char; //char str[100]; string str; cout<<"Convierte una cadena a mayúsculas. \n"; cout<<"-----------------------------------\n"; cout<<"Ingrese una cadena en minúsculas: "; //fgets(str, sizeof str, stdin); getline(cin, str, '\n'); cout<<"La cadena en MAYÚSCULAS es: \n"; while (str[ctr]) { str_char=str[ctr]; putchar (toupper(str_char)); ctr++; } 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