online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <iomanip> using namespace std; int main() { const size_t kMax = 10; double salaries[kMax]; // how big to make this? cout << "Enter up to " << kMax << " salaries. 0 to quit." << endl; for (size_t i = 0; i < kMax; ++i) { double n; if (cin >> n && n != 0) salaries[i] = n; else break; } // How did we exit the loop? // How many salaries are valid? 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