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

質問編集履歴

2

misu

2018/08/04 08:10

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,7 @@
1
1
  メインcファイル
2
2
  ```
3
3
  1 #include <stdio.h>
4
- 2 #include <16.h>
4
+ 2 #include 16.h
5
5
  3 int main(){
6
6
  4
7
7
  5 int x,y;
@@ -11,7 +11,7 @@
11
11
  9 fgets(s,sizeof(s),stdin);
12
12
  10 sscanf(s,"%d%d",&x,&y);
13
13
  11
14
- 12 int hm(x,y);
14
+ 12 int hm(int x,int y);
15
15
  13
16
16
  14 return 0;
17
17
  15 }
@@ -20,15 +20,15 @@
20
20
  ヘッダーファイル
21
21
  ```
22
22
  1 #ifndef HM_H
23
- 2 #define HM_M
23
+ 2 #define HM_H
24
- 3
25
24
  4 int hm(int x,int y);
26
25
  5
27
26
  6 #endif
28
27
 
29
28
  ```
30
29
  別のCファイル
31
- ```
30
+ ```#include<stdio.h>
31
+ #include"16.h"
32
32
   1 int hm(x,y){
33
33
  2
34
34
  3

1

ミス

2018/08/04 08:10

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
- ```メインcファイル
1
+ メインcファイル
2
+ ```
2
3
  1 #include <stdio.h>
3
4
  2 #include <16.h>
4
5
  3 int main(){
@@ -16,7 +17,8 @@
16
17
  15 }
17
18
  ~
18
19
  ```
19
- ```ヘッダーファイル
20
+ ヘッダーファイル
21
+ ```
20
22
  1 #ifndef HM_H
21
23
  2 #define HM_M
22
24
  3
@@ -25,7 +27,8 @@
25
27
  6 #endif
26
28
 
27
29
  ```
28
- ``` 別のCファイル
30
+ 別のCファイル
31
+ ```
29
32
   1 int hm(x,y){
30
33
  2
31
34
  3