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 s[35], *ptr, c; cout<<"Introduceti sirul: "; cin.get(s, 35); cout<<"Introduceti caracterul: ";cin>>c; ptr = strchr(s, c); if (ptr){ cout<<"Caracterul "<<c<<" este pe pozitia "<<ptr-s; cout<<endl<<"de unde sirul continua: "<<ptr; } else cout<<"Caracterul "<<c<<" nu se gaseste in sir"; cout<<endl; 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