Dyskusje Q&A
Freelancer or employee
16 głosów
30 odpowiedzifreelancer or employee ??
11 głosów
22 odpowiedzi#include <iostream>
using namespace std;
class employee
int main()
{
private:
double salary;
public:
void getsalary(double sal)
{
salary=sal;
}
void display()
{
cout<<"the salary:"<<salary;
}
};
void main ()
{
employee programmer;
employee manager;
manager.getsalary (60000.0);
programmer.getsalary(40000.0);
manager.display();
programmer.display();
return 0;
}
1 Głos
5 odpowiedziPopularne dzisiaj
Java certification
1 Votes
Game dev
0 Votes
I can't understand the bug
0 Votes
Error with code
0 Votes
What is <p>
1 Votes
Guys I'm a newcomer
1 Votes