-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut14.cpp
More file actions
43 lines (34 loc) · 692 Bytes
/
tut14.cpp
File metadata and controls
43 lines (34 loc) · 692 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
36
37
38
39
40
41
42
43
#include<iostream>
using namespace std;
typedef struct enployee
{
/* data */
int eId;
char favChar;
float salary;
}ep;
union money
{
/* data */
int rice;
int car;
float pounds;
};
int main()
{
enum Meal{breakfast,lunch,dinner};
cout<<breakfast<<endl;
cout<<lunch<<endl;
cout<<dinner<<endl;
// union money m1;
// m1.rice = 34;
// cout<<m1.rice;
// ep Ritik;
// Ritik.eId = 1;
// Ritik.favChar = 'c';
// Ritik.salary = 382492437;
// cout<<"The value is "<<Ritik.eId<<endl;
// cout<<"The value is "<<Ritik.favChar<<endl;
// cout<<"The value is "<<Ritik.salary<<endl;
return 0;
}