challenge Hello, world!

「Hello, world!」と表示するプログラムを作ってください。

Posted feedbacks - C#

C# MessageBox版
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
using System;
using System.Windows.Forms;

namespace Doukaku
{
	static class Hello
	{
		[STAThread]
		static void Main()
		{
			MessageBox.Show("Hello, world!");
		}
	}
}

1
2
3
4
5
6
7
class Program
{
  static void Main()
  {
    System.Console.WriteLine("Hello, world!");
  }
}

入門書に載っていそう。

1
2
3
4
5
6
7
8
9
using System;

class Program
{
    static void Main()
    {
        Console.WriteLine("Hello, world!");
    }
}

Index

Feed

Other

Link

Pathtraq

loading...