質問編集履歴
1
コードを追加します
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,9 +64,57 @@
|
|
64
64
|
|
65
65
|
```ここに言語名を入力
|
66
66
|
|
67
|
-
|
67
|
+
enum type {WN, PN};
|
68
68
|
|
69
|
+
|
70
|
+
|
71
|
+
union WPN {
|
72
|
+
|
73
|
+
int wn;
|
74
|
+
|
75
|
+
char pn[10];
|
76
|
+
|
77
|
+
};
|
78
|
+
|
79
|
+
struct info {
|
80
|
+
|
81
|
+
enum type kind;
|
82
|
+
|
83
|
+
union WPN n_info;
|
84
|
+
|
85
|
+
};
|
86
|
+
|
87
|
+
typedef struct employee {
|
88
|
+
|
89
|
+
char name[10];
|
90
|
+
|
91
|
+
struct info num;
|
92
|
+
|
93
|
+
int age;
|
94
|
+
|
95
|
+
}Employee;
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
int main()
|
100
|
+
|
101
|
+
{
|
102
|
+
|
103
|
+
int i,kai;
|
104
|
+
|
105
|
+
char c;
|
106
|
+
|
107
|
+
Employee e[10]= { };
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
69
|
-
|
113
|
+
scanf("%d",&kai);//回数
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
char name[20];
|
70
118
|
|
71
119
|
scanf("%s",name);
|
72
120
|
|
@@ -90,6 +138,12 @@
|
|
90
138
|
|
91
139
|
}
|
92
140
|
|
141
|
+
return 0;
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
|
93
147
|
```
|
94
148
|
|
95
149
|
|