online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include<string.h> using namespace std; int main () { char a[80]; cin.get (a, 80); int i = 0; while (a[i] != 'p') { cout << a[i]; i++; } cout << "\n" << strlen (a); 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.