online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include<map> #include<string> #include<vector> #include <iostream> #include <vector> using namespace std; class Entity; //forward declaration class Weapon{ public: int atk_points; string name; string description; //------------------------------v----------->this time using reference is optional void Attack(const Entity& target); //this is a declaration }; class Armor{ public: int hp_points; string name; string description; int block_chance; }; class Entity{ public: int hp; int atk; string name; vector<Weapon> weapons; vector<Armor> armors; }; //implementation after Entity's definition void Weapon::Attack(const Entity& target) { } int main() { 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