online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> #include<iomanip> #include<fstream> using namespace std; struct Data { string first_name; string last_name; int employee_id; string phone_number; }; void addEmployee(); const int SIZE = 15; Data employeeList[SIZE]; int current = 0; int main(){ Data emp1 = {"John", "Doe", 100, "12345"}; employeeList[0] = emp1; current++; addEmployee(); for(int i=0; i<current; i++){ Data emp = employeeList[i]; cout<<i+1<<" "<<emp.first_name<<" "<<emp.phone_number<<endl; } } void addEmployee(){ Data emp2 = {"Sam", "Smith", 200, "67890"}; employeeList[current] = emp2; current++; }

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