online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <iostream> using namespace std; class Employee { protected: string name; int number; public: Employee() {} public: Employee(string name, int number) { this->name = name; this->number = number; } void getData() { cout << "Enter Employee Name " << endl; cin >> this->name; cout << "\nEnter Employee Number " << endl; cin >> this->number; } void putData() { cout << "Employee Name: " << this->name << ", Employee Number: " << this->number << endl; } }; int main() { Employee e1; e1.getData(); e1.putData(); Employee e2("Samir", 1); e2.putData(); }

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