online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> class FEE { private: int fee = 0; //use in-class initializer for built in type public: void setfee(int pfee) { fee = pfee; } void showfee() { std::cout<<"Monthly fee is "<<fee<<std::endl; } }; int main() { FEE stu[5]; //default initiailized array int inputFee = 0; for(int i=0;i<5;i++) { std::cout<<"Enter the monthly fee= "; std::cin>>inputFee; //call setfee passing the inputFee stu[i].setfee(inputFee); } for(int i = 0; i<5; ++i) { stu[i].showfee(); } }

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