online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <sstream> #include<fstream> struct Equation { std::string lhs, rhs; }; int main() { struct Equation equation1;//the lhs and rhs read from the file will be stored into this equation1 object's data member std::ifstream inFile("input.txt"); if(inFile) { getline(inFile, equation1.lhs, '=') ; //store the lhs of line read into data member lhs getline(inFile, equation1.rhs, '\n'); //store the rhs of line read into data member rhs } else { std::cout<<"file cannot be opened"<<std::endl; } inFile.close(); //print out the lhs and rhs std::cout<<equation1.lhs<<std::endl; std::cout<<equation1.rhs<<std::endl; return 0; }
6=3+3

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