質問編集履歴
4
画像添付
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,4 +71,6 @@
|
|
71
71
|
|
72
72
|
```
|
73
73
|
|
74
|
-

|
74
|
+

|
75
|
+
|
76
|
+

|
3
画像添付
title
CHANGED
File without changes
|
body
CHANGED
@@ -69,4 +69,6 @@
|
|
69
69
|
}
|
70
70
|
}
|
71
71
|
|
72
|
-
```
|
72
|
+
```
|
73
|
+
|
74
|
+

|
2
最初に掲載したものから少し変わっております。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
|
10
10
|
以下、どこを修正すれば、良いのでしょうか。
|
11
11
|
|
12
|
+
```ここに言語を入力
|
12
13
|
using System;
|
13
14
|
using System.Collections.Generic;
|
14
15
|
using System.ComponentModel;
|
@@ -21,9 +22,9 @@
|
|
21
22
|
|
22
23
|
namespace TDD.UI
|
23
24
|
{
|
24
|
-
public partial class
|
25
|
+
public partial class Form1View : Form
|
25
26
|
{
|
26
|
-
public
|
27
|
+
public Form1View()
|
27
28
|
{
|
28
29
|
InitializeComponent();
|
29
30
|
}
|
@@ -32,16 +33,15 @@
|
|
32
33
|
{
|
33
34
|
int a = Convert.ToInt32(ATextBox.Text);
|
34
35
|
int b = Convert.ToInt32(BTextBox.Text);
|
35
|
-
|
36
|
+
|
36
|
-
|
37
|
+
EcualLabel.Text = Caluculation.Sum(a,b).ToString();
|
37
38
|
}
|
38
39
|
}
|
39
40
|
}
|
40
41
|
|
42
|
+
```
|
41
43
|
|
42
|
-
|
43
|
-
|
44
|
+
```ここに言語を入力
|
44
|
-
|
45
45
|
using System;
|
46
46
|
using System.Collections.Generic;
|
47
47
|
using System.Linq;
|
@@ -52,7 +52,7 @@
|
|
52
52
|
{
|
53
53
|
public static class Caluculation
|
54
54
|
{
|
55
|
-
public static int Sum(int a, int b)
|
55
|
+
public static int Sum(int a, int b)
|
56
56
|
{
|
57
57
|
return a + b;
|
58
58
|
}
|
@@ -67,4 +67,6 @@
|
|
67
67
|
return values / list.Count;
|
68
68
|
}
|
69
69
|
}
|
70
|
-
}
|
70
|
+
}
|
71
|
+
|
72
|
+
```
|
1
a
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
となります。
|
6
6
|
|
7
7
|
引数を2つ必要なSumメソッドが宣言されていないと解釈したのですが、
|
8
|
-
一応
|
8
|
+
一応Sumメソッドを書いております。
|
9
9
|
|
10
10
|
以下、どこを修正すれば、良いのでしょうか。
|
11
11
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
{
|
53
53
|
public static class Caluculation
|
54
54
|
{
|
55
|
-
public static int Sum(int a, int b)
|
55
|
+
public static int Sum(int a, int b) ⇐Sumメソッド!!!!!
|
56
56
|
{
|
57
57
|
return a + b;
|
58
58
|
}
|