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
How to allow one instance of exe
1 Votes
purchase of a subscription
1 Votes
Theater management help me
2 Votes
What has happened?
1 Votes
What should I add/improve ?
1 Votes
Python
1 Votes
Tools for web design?
1 Votes