質問編集履歴

1

ソースコードを見やすくしました

2017/05/14 06:09

投稿

isc.2017
isc.2017

スコア12

test CHANGED
File without changes
test CHANGED
@@ -12,19 +12,19 @@
12
12
 
13
13
  というものです。
14
14
 
15
+ ```
15
16
 
17
+ #include <stdio.h>
16
18
 
17
- .#include <stdio.h>
19
+ #include <stdlib.h>
18
20
 
19
- .#include <stdlib.h>
20
-
21
- .#include <string.h>
21
+ #include <string.h>
22
22
 
23
23
 
24
24
 
25
- .#define BUFSIZE 128
25
+ #define BUFSIZE 128
26
26
 
27
- .#define DATASIZE 1000
27
+ #define DATASIZE 1000
28
28
 
29
29
 
30
30
 
@@ -62,6 +62,8 @@
62
62
 
63
63
 
64
64
 
65
+ ```
66
+
65
67
  この後なんですが、fgetsでchar型のbufに入れた文字列と、構造体の中のchar型のnameに入っている文字列が部分的に一致しているかを調べるにはどうすればよいでしょうか?
66
68
 
67
69
  if(strcmp()