-
Notifications
You must be signed in to change notification settings - Fork 0
/
fiftythree.cpp
52 lines (49 loc) · 1.31 KB
/
fiftythree.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include<iostream>
#include<stdlib.h>
#include<iomanip>
using namespace std;
struct students{
int rollno;
string clas;
string name;
char group;
};
union identity{
long long int aadhar,drivinglicense;
char pancard[20];
};
int main(){
string firstn,middlen,lastn;
cin>>firstn;
cin>>middlen;
cin>>lastn;
enum nameseq{first,middle,last};
cout<<first<<endl;
cout<<middle<<endl;
cout<<last<<endl;
// students block1_1;
// identity cusumer1;
// cout<<"Enter the Roll no of the students :";
// cin>>block1_1.rollno;
// cout<<"Enter the Class of the students :";
// cin>>block1_1.clas;
// cout<<"Enter the Name of the students :";
// cin>>block1_1.name;
// cout<<"Enter the Group of the students :";
// cin>>block1_1.group;
// cout<<"student database"<<endl;
// cout<<setw(9)<<block1_1.clas<<endl;
// cout<<setw(9)<<block1_1.rollno<<endl;
// cout<<setw(9)<<block1_1.group<<endl;
// cout<<setw(9)<<block1_1.name<<endl;
identity emp1;
emp1.aadhar = 888888888888889;
emp1.drivinglicense = 93333332213;
cout<<"Enter the pancard no of emp1";
cin>>emp1.pancard;
cout<<setw(20)<<emp1.drivinglicense<<endl;
cout<<setw(20)<<emp1.aadhar<<endl;
cout<<setw(20)<<emp1.pancard<<endl;
cout<<endl;
return 0;
}