Einzelnen Beitrag anzeigen

Benutzerbild von malo
malo

Registriert seit: 19. Sep 2004
2.115 Beiträge
 
#1

Arguments werden nicht angezeigt?

  Alt 23. Feb 2005, 19:27
Ich sitze grade vor diesem Tutorial. Die ersten 2 Beispiele dort habe ich bereits verstanden, allerdings haperts bei dem Dritten. Einmal die Beschreibung des Beispiels:

Zitat:
Example 3

If you need access to the command line parameters passed in to your application, simply change the signature of the Main method to include them as shown below. This example counts and displays the command line arguments.

Code:
// Hello3.cs
// arguments: 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]);
      }
   }
}
Output
Code:
Hello, World!
You entered the following 4 command line arguments:
A
B
C
D
Bei mir wird jedoch nicht obiger Text ausgegeben, sondern einfach nur
Zitat:
Hello, World!
You entered following 0 command line arguements:
Drücken Sie eine beliebige Taste ...
Was hab ich falsch gemacht? Oder warum krieg ich eine ganz andere Ausgabe, als Microsoft sagt?

Ich nutze #develop 1.0.3
  Mit Zitat antworten Zitat