#include
#include
#include
class
employee
{
int
bonus;
public:
setreport(int
ot)
{
bonus=ot*500;
return(bonus);
}
void
displayreport(int id,int year,int b,int ot)
{
cout<
}
};
void
main()
{
clrscr();
int
n,id,year,ot,b;
cout<
cin>>n;
employee
a[50];
for(int
i=0;i
{
cout<
cin>>id;
cout<
cin>>year;
cout<
cin>>ot;
}
for(i=0;i
{
b=a[i].setreport(ot);
a[i].displayreport(id,year,b,ot);
}
getch();
}
No comments:
Post a Comment