online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main () { float testData[7] = { -2.5, -1.5, -0.5, 0, 0.5, 1.5, 2.5 }; for (int i = 0; i < 7; i++) { printf (" %d | input: %4.1f -> rint: %4.1f, round: %4.1f\n", i, testData[i], rint (testData[i]), round (testData[i])); } 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