online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string.h> #include <stdio.h> using namespace std; int main() { char sir[255]; char separatori[20]=".;:!<>(){}[]' c"; char *ptr; strcpy(sir,"Vii?Nu!N-o sa vin,nici eu, niciea;e bine?"); // prima invocare a functiei strtok // avand ca prim parametru sirul sir ptr = strtok(sir, separatori); if (ptr) cout<<ptr<<endl; // invocarea repetata a functiei strtok // avand ca prim parametru valoarea NULL while(ptr){ ptr = strtok(NULL, separatori); if (ptr) cout<<ptr<<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