#include <iostream>
#include <string.h>
using namespace std;
struct employee
{
int empno, esalary;
string ename;
void set(int number , string name, int salary)
{
this->ename = name;
this->empno = number;
this-> esalary= salary;
}
void print()
{
cout << "employee name : " << ename << endl;
cout << "employee number = " << empno << endl;
cout << "employee salary = " << esalary << endl;
}
void netsal()
{
float w = esalary * 16 / 100;
cout << " salary after deducting 16% = " << w << endl;
}
};
int main()
{
employee r[5];
int number,salary;
string name;
for (int i = 0; i < 5; i++)
{
cin>>number>>name>>salary;
r[i].set(number ,name, salary);
}
for (int i = 0; i < 5; i++)
{
r[i].print();
cout<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnN0cnVjdCBlbXBsb3llZQp7CiAgICBpbnQgZW1wbm8sIGVzYWxhcnk7CiAgICBzdHJpbmcgZW5hbWU7CiAgICB2b2lkIHNldChpbnQgbnVtYmVyICwgc3RyaW5nIG5hbWUsIGludCBzYWxhcnkpCiAgICB7CiAgICAgICAgdGhpcy0+ZW5hbWUgPSBuYW1lOwogICAgICAgIHRoaXMtPmVtcG5vID0gbnVtYmVyOwogICAgICAgIHRoaXMtPiBlc2FsYXJ5PSBzYWxhcnk7CiAgICB9CiAgICB2b2lkIHByaW50KCkKICAgIHsKICAgICAgICBjb3V0IDw8ICJlbXBsb3llZSBuYW1lIDogIiA8PCBlbmFtZSA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgImVtcGxveWVlIG51bWJlciA9ICIgPDwgZW1wbm8gPDwgZW5kbDsKICAgICAgICBjb3V0IDw8ICJlbXBsb3llZSBzYWxhcnkgPSAiIDw8IGVzYWxhcnkgPDwgZW5kbDsKICAgIH0KICAgIHZvaWQgbmV0c2FsKCkKICAgIHsKICAgICAgICBmbG9hdCB3ID0gZXNhbGFyeSAqIDE2IC8gMTAwOyAgICAgICAgCiAgICAgICAgY291dCA8PCAiIHNhbGFyeSBhZnRlciB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