質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
using System.Collections;
|
30
30
|
|
31
|
-
public class
|
31
|
+
public class Program{
|
32
32
|
|
33
33
|
public static void Main(){
|
34
34
|
|
2
ソースとエラーの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,9 +24,23 @@
|
|
24
24
|
|
25
25
|
```c#
|
26
26
|
|
27
|
-
|
27
|
+
using System;
|
28
28
|
|
29
|
+
using System.Collections;
|
30
|
+
|
31
|
+
public class Hello{
|
32
|
+
|
33
|
+
public static void Main(){
|
34
|
+
|
35
|
+
string [] array = { "array1", "array2" };
|
36
|
+
|
37
|
+
for ( var i = 0, len = array.Length; i < len; i++ ) {
|
38
|
+
|
29
|
-
Console.WriteLine(array[i]);
|
39
|
+
Console.WriteLine(array[i]);
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
30
44
|
|
31
45
|
}
|
32
46
|
|
@@ -35,6 +49,24 @@
|
|
35
49
|
|
36
50
|
|
37
51
|
と書けないですか?
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
Microsoft (R) Visual C# Compiler バージョン 2.8.0.62830 (e595ee27)
|
58
|
+
|
59
|
+
Copyright (C) Microsoft Corporation. All rights reserved.
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
files.cs(7,15): error CS0819: 暗黙的に型指定された変数は、複数の宣言子を持つことができません。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
このようなエラーが発生します。
|
38
70
|
|
39
71
|
|
40
72
|
|
1
markdown文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
```c
|
25
|
+
```c#
|
26
26
|
|
27
27
|
for ( var i = 0, len = array.Length; i < len; i++ ) {
|
28
28
|
|
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
```c
|
45
|
+
```c#
|
46
46
|
|
47
47
|
var len = array.Length;
|
48
48
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
or
|
58
58
|
|
59
|
-
```c
|
59
|
+
```c#
|
60
60
|
|
61
61
|
for ( var i = 0; i < array.Length; i++ ) {
|
62
62
|
|