Ich war mir auch nicht sicher. Als ich es dann nachgucken wollte habe ich das entdeckt und das hat mich dann ein wenig stutzig gemacht. Es liegt aber auch sicher daran, dass die Funktion nicht zum C++ Standard gehört und dann bei verschiedenen Compilern/Versionen anders implementiert ist.
cin liest nur bis zu einem Leerzeichen, einem Tabstop oder einer Newline ein.
Lies halt in einer Schleife so lange durch, bis der gesamte Input Stream wieder leer ist und hänge dann alles aneinander.
cin liest nur bis zu einem Leerzeichen, einem Tabstop oder einer Newline ein.
Lies halt in einer Schleife so lange durch, bis der gesamte Input Stream wieder leer ist und hänge dann alles aneinander.
^das!
Du überschreibst den Inhalt von CMD ja wieder per cin, ist doch klar, dass du das dann weglassen musst!
Wenn du es dir nochmal genau durchlesen willst:
Der erste Parameter ist der Konsoleneingabestream (Consol Input)
Der zweite ist der String, in dem der Inhalt gespeichert werden soll. Beides sind Referenzen also werden keine Pointer benötigt. Der dritte Parameter muss nicht angegeben werden, wenn man ihn angibt definiert er den den Buchstaben bei dem das Einlesen terminiert werden soll.
Wenn du es dir nochmal genau durchlesen willst:
Der erste Parameter ist der Konsoleneingabestream (Consol Input)
Der zweite ist der String, in dem der Inhalt gespeichert werden soll. Beides sind Referenzen also werden keine Pointer benötigt. Der dritte Parameter muss nicht angegeben werden, wenn man ihn angibt definiert er den den Buchstaben bei dem das Einlesen terminiert werden soll.
[RELEASE] Console Commands for Lame Console Look 12/07/2011 - CO2 PServer Guides & Releases - 12 Replies Well, to avoid any further useless posts on this subject... here are a ton of console based commands that will control the game from the server console. I will not explain what each does, it should be pretty easy to figure out, and I don't intend to answer stupid questions. If its a good question, I will answer it.
public static void DoStuff()
{
bool flag = true;
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red;
...
[Request]Dekaron HeavensGate vach,aggro,speed,wall,gm console 06/19/2009 - Dekaron Private Server - 3 Replies Hi , any can create or post here some hacks(vach hack,non aggro,wall hack,gm console,spawn monsters no gm hack!,speed) for Dekaron HG on all maps , including hacks for new maps ?
:handsdown:----:handsdown:
[Request] GM console? 07/18/2008 - Perfect World - 2 Replies I've been looking on this site, and it says something about a GM console for pw, well I think X-UG had it but their forum isn't available so does anyone have the file and would kindly put it on this thread so I may try it out? I don't care if it's client sided, or if it doesn't work, I want it for experimental reasons, so thank you to whoever uploads it on elitepvpers.
[REQUEST] Hacking Client Guide - admin console 06/09/2008 - Perfect World - 2 Replies I have seen some topics with claims that they have an admin / debug console. I would like to know how to do this for myself. I have read that it doesnt work but i dont care as i just want it for the fact of having it. I hope someone can help. I was hoping for a guide just like this one. Thanks in advance.