回答編集履歴
1
ヘッダからの表示を書き忘れたため追記
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
int main(){
|
23
|
+
int main() {
|
24
24
|
|
25
25
|
|
26
26
|
|
@@ -47,3 +47,45 @@
|
|
47
47
|
}
|
48
48
|
|
49
49
|
```
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
ヘッダからの文字列表示はヘッダで定義されていて
|
54
|
+
|
55
|
+
そのヘッダをincludeしているならできたはずです。
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
hogehoge.h
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
char str2[10]="AAAAA";
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
main.c
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
#include <stdio.h>
|
76
|
+
|
77
|
+
#include <stdlib.h>
|
78
|
+
|
79
|
+
#include "hogehoge.h"
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
void main() {
|
84
|
+
|
85
|
+
printf("%s\n",str2);
|
86
|
+
|
87
|
+
return;
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
```
|