Autor Beitrag
Metrik
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: So 18.12.05 13:08 
Hallo

hat jemand eine Idee, wie man eine c# console dazu bringt, das folgende auszugeben.

beispiel

metrik> ....

Man soll dann, dort wo die Punkte stehen einen Befehl eingeben können.
Ich bekomme es hin, dass ich unter dem metrik> schreiben kann, aber nicht auf der selben Zeile.

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
using System;

namespace blabla
{
    class hallo
    {  
        static void Main(string[] args)
        {  
            string temp;  
            Console.WriteLine("metrik> ");
            temp= Console.ReadLine();
        }  
    }
}



Moderiert von user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am So 18.12.2005 um 12:13
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 18.12.05 13:13 
Hallo!

Nutze einfach Write statt WriteLine. :-)

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Metrik Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80

Win XP, Win Vista
C# (VS 2003, #Develop)
BeitragVerfasst: So 18.12.05 18:33 
Hey danke

So simpel ...
:autsch:

Metrik