online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main() { int value, even, odd; ifstream infile; infile.open("lab6_input.txt"); while (infile >> value) { cout << string(abs(value), "*$"[abs(value) % 2]) << endl; value++; } infile.close(); return 0; }
1 2 -1 -2 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