回答編集履歴
2
修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
#include <stdio.h>
|
8
8
|
|
9
|
-
#define STR_LEN
|
9
|
+
#define STR_LEN 9
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
/* 数字以外の値が入力されたら再起 */
|
78
78
|
|
79
|
-
for(i = 0; i < STR_LEN-
|
79
|
+
for(i = 0; i < STR_LEN-2; i++)
|
80
80
|
|
81
81
|
{
|
82
82
|
|
1
修正
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
|
35
|
+
read_year_month(&year, &month);
|
36
36
|
|
37
37
|
|
38
38
|
|