1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
class PaySlip{
private:
string name;
int payGrade, basicSal, overtimeH, overtimeP, grossP, netP, withT;
public:
void setValue(string names, int payGrades, int basicSals, int overtimeHs, int overtimePs, int grossPs, int netPs, int withTs){
name = names;
payGrade = payGrades;
basicSal = basicSals;
overtimeH = overtimeHs;
overtimeP = overtimePs;
grossP = grossPs;
netP = netPs;
withT = withTs;
}
int getValue(){ // what data type should i use?
return payGrade, basicSal, overtimeH, overtimeP, grossP, netP, withT;
}
};
|