回答編集履歴

1

修正

2016/10/07 15:53

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -46,15 +46,15 @@
46
46
 
47
47
  }
48
48
 
49
- if( NULL ==(filepointer2=fopen(filename2,"a")))
49
+ if( NULL ==(filepointer2=fopen(filename2,"w")))
50
50
 
51
- {
51
+ {
52
52
 
53
- printf("\n %s cannot be opened \n",filename2);
53
+ printf("\n %s cannot be opened \n",filename2);
54
54
 
55
- exit(1);
55
+ exit(1);
56
56
 
57
- }
57
+ }
58
58
 
59
59
 
60
60