online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <fstream> using namespace std; int main(int argc, const char * argv[]) { string line; string lines[100]; ifstream myfile ("CodeHere.txt"); int i = 0; if (myfile.is_open()) { while ( getline (myfile,line) ) { lines[0] = line; i++; } myfile.close(); } else cout << "Unable to open file"; cout << lines[0]; myfile.close(); return 0; }
Hello

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