回答編集履歴

2

retype

2018/07/21 16:37

投稿

AliHassan
AliHassan

スコア351

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  int rows = 3;
6
6
 
7
- int array[rows][row] =0;
7
+ char array[rows][row] =0;
8
8
 
9
9
  for(; i <= rows; i++) {
10
10
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  // this is c code for multiple array
14
14
 
15
- scanf(%s, &array[i][j]);
15
+ scanf(%c, &array[i][j]);
16
16
 
17
17
  }
18
18
 

1

something miss

2018/07/21 16:36

投稿

AliHassan
AliHassan

スコア351

test CHANGED
@@ -4,14 +4,20 @@
4
4
 
5
5
  int rows = 3;
6
6
 
7
+ int array[rows][row] =0;
8
+
7
9
  for(; i <= rows; i++) {
8
10
 
9
11
  for(int j = 0; j <= rows; j++){
10
12
 
11
- // this is c code f
13
+ // this is c code for multiple array
14
+
15
+ scanf(%s, &array[i][j]);
12
16
 
13
17
  }
14
18
 
15
19
  }
16
20
 
17
21
  ```
22
+
23
+ data store easily in 2d array