teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

画像添付

2018/10/31 05:27

投稿

k_mail
k_mail

スコア90

title CHANGED
File without changes
body CHANGED
@@ -71,4 +71,6 @@
71
71
 
72
72
  ```
73
73
 
74
- ![イメージ説明](e0002cc719458d3ced32c3c5d4ba2245.png)
74
+ ![イメージ説明](e0002cc719458d3ced32c3c5d4ba2245.png)
75
+
76
+ ![イメージ説明](c11e9cbadf2753c6ce56c840d9c67179.png)

3

画像添付

2018/10/31 05:27

投稿

k_mail
k_mail

スコア90

title CHANGED
File without changes
body CHANGED
@@ -69,4 +69,6 @@
69
69
  }
70
70
  }
71
71
 
72
- ```
72
+ ```
73
+
74
+ ![イメージ説明](e0002cc719458d3ced32c3c5d4ba2245.png)

2

最初に掲載したものから少し変わっております。

2018/10/31 04:58

投稿

k_mail
k_mail

スコア90

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 Form1 : Form
25
+ public partial class Form1View : Form
25
26
  {
26
- public Form1()
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
- ResultLabel.Text = Caluculation.Sum(a,b);   ⇐エラーが出ている!!!!!
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) ⇐Sumメソッド!!!!!
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

2018/10/31 04:50

投稿

k_mail
k_mail

スコア90

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  となります。
6
6
 
7
7
  引数を2つ必要なSumメソッドが宣言されていないと解釈したのですが、
8
- 一応SDumメソッドを書いております。
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
  }