-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.cpp
More file actions
37 lines (25 loc) · 645 Bytes
/
Copy patha.cpp
File metadata and controls
37 lines (25 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include<iostream>
using namespace std;
class employee
{
public :
string name;
int age;
float salary;
};
int main(){
employee e1,e2;
e1.name="ayush";
e1.age=12;
e1.salary= 50000;
e2.name="om";
e2.age=12;
e2.salary= 50000;
cout<<"name of first employee: "<<e1.name<<endl;
cout<<"age: "<<e1.age<<endl;
cout<<"salary: "<<e1.salary<<endl;
cout<<"name of second employee: "<<e2.name<<endl;
cout<<"age: "<<e2.age<<endl;
cout<<"salary: "<<e2.salary;
return 0;
}