質問するログイン新規登録

質問編集履歴

1

funcAとfuncBが逆だった。

2016/08/21 23:53

投稿

退会済みユーザー
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 funcB(int x) { return funcA(2) + 2; }
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 funcA(int x) { return x + 2; }
37
+ int funcB(int x) { return funcA(2) + 2; }
38
38
  ```
39
39
 
40
40
  2つのファイルがmain.hを読み込んでいます。