Public paste
test
By: test | Date: Jul 31 2011 19:16 | Format: C# | Expires: never | Size: 397 B | Hits: 718

  1. // Hello3.cs
  2. // arguments: A B C D
  3. using System;
  4.  
  5. public class Hello3
  6. {
  7.    public static void Main(string[] args)
  8.    {
  9.       Console.WriteLine("Hello, World!");
  10.       Console.WriteLine("You entered the following {0} command line arguments:",
  11.          args.Length );
  12.       for (int i=0; i < args.Length; i++)
  13.       {
  14.          Console.WriteLine("{0}", args[i]);
  15.       }
  16.    }
  17. }