質問編集履歴
1
funcAとfuncBが逆だった。
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,15 +26,15 @@
|
|
26
26
|
```
|
27
27
|
// funcA.cc
|
28
28
|
|
29
|
-
#include "main.h"
|
30
|
-
|
31
|
-
int
|
29
|
+
int funcA(int x) { return x + 2; }
|
32
30
|
```
|
33
31
|
|
34
32
|
```
|
35
33
|
// funcB.cc
|
36
34
|
|
35
|
+
#include "main.h"
|
36
|
+
|
37
|
-
int
|
37
|
+
int funcB(int x) { return funcA(2) + 2; }
|
38
38
|
```
|
39
39
|
|
40
40
|
2つのファイルがmain.hを読み込んでいます。
|