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
Sticky position
2 Votes
Help please?
3 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Ejercicio Pytho
0 Votes
SQL practice
2 Votes
Ruby programming?
3 Votes