質問編集履歴

3

追記をしました。

2018/12/09 14:53

投稿

yuyu_
yuyu_

スコア8

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  構造体を1つにしたところ上手くできたのですが、構造体を2つにするとなぜ全ての要素に同じものが代入されてしまうのかがわからず困っています。
12
12
 
13
-
13
+ できれば解決方法も教えていただきたいです。
14
14
 
15
15
  ### 該当のソースコード
16
16
 

2

やっぱり関係あったのでもとに戻しました。

2018/12/09 14:53

投稿

yuyu_
yuyu_

スコア8

test CHANGED
File without changes
test CHANGED
@@ -54,7 +54,7 @@
54
54
 
55
55
  FILE *file;
56
56
 
57
- int currentSize=10;
57
+ int counter=0,currentSize=10;
58
58
 
59
59
  int i;
60
60
 

1

関係のない変数があったので削除しました。

2018/12/09 14:01

投稿

yuyu_
yuyu_

スコア8

test CHANGED
File without changes
test CHANGED
@@ -54,7 +54,7 @@
54
54
 
55
55
  FILE *file;
56
56
 
57
- int counter=0,currentSize=10;
57
+ int currentSize=10;
58
58
 
59
59
  int i;
60
60