ylbtech-Unitity-CS:Hello world |
1.A,效果图返回顶部 |
1.B,源代码返回顶部 |
1.B.1,Hello1.cs
public class Hello1 { public static void Main() { System.Console.WriteLine("Hello, World!"); } }
1.B.2,Hello2.cs
using System; public class Hello2 { public static void Main() { Console.WriteLine("Hello, World!"); } }
1.B.3,Hello3.cs
// Hello3.cs // 参数:A B C D using System; public class Hello3 { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args[i]); } } }
1.B.4,Hello4.cs
using System; public class Hello4 { public static int Main(string[] args) { Console.WriteLine("Hello, World!"); return 0; } }
1.B.5,