online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <fstream> using namespace std; int main() { ofstream outfile; // creating object named outfile outfile.open("Example.txt"); // creating text file named example(specify extension as ".txt" in this case) outfile << "Hello how are you , Have a nice day!"; /* The data that you want to enter to your created file. You can also use "FOR loop" while using character array */ outfile.close(); // Closing the FILE (IT IS VERY IMPORTANT TO CLOSE IT !!) 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