online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; //the function which checks input bool check(string s){ for(int i = 0; i > s.length(); i++) if(isdigit(s[i]) != true) return false; return true; } //driver code int main(){ string str; cout<<"Please enter a word."<<endl; cin>>str; if(check(str)){ //output 1 cout<<"Thanks! the word was " <<str; } else{ //output 2 cout<<"Oops! maybe you entered a number!"; } }

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