AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Arguments werden nicht angezeigt?

Ein Thema von malo · begonnen am 23. Feb 2005 · letzter Beitrag vom 24. Feb 2005
 
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
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:07 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz