Q&A Discussões
#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 Voto
5 RespostasРусские помогайте
10 Votos
7 RespostasQuente hoje
How to make a 2d game
1 Votes
Html
2 Votes
Detach thread exception
1 Votes
Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row:
1 Votes
Need a tutor on Java
0 Votes