Minichan

Topic: C# logic

meticulousMisnomer !M9.6XYhKxM started this discussion 14 years ago #18,555


static public char input()
{
return Console.ReadKey().ToString().ToCharArray()[0];
}


Because Console.ReadKey() just on't return a char like a sane programming language.

Falco !PZmcClOUDk joined in and replied with this 14 years ago, 1 minute later[^] [v] #307,593

http://www.youtube.com/watch?v=RFZrzg62Zj0

Falco !PZmcClOUDk double-posted this 14 years ago, 1 minute later, 3 minutes after the original post[^] [v] #307,594

seriously, what the fuck are you even talking about?

meticulousMisnomer !M9.6XYhKxM (OP) replied with this 14 years ago, 1 minute later, 4 minutes after the original post[^] [v] #307,595

@307,593 (Falco !PZmcClOUDk)
> Falco
> complaining about a shitpost

Anonymous C joined in and replied with this 14 years ago, 24 minutes later, 28 minutes after the original post[^] [v] #307,599

OP doesn't give a fuck about control characters.

meticulousMisnomer !M9.6XYhKxM (OP) replied with this 14 years ago, 4 minutes later, 33 minutes after the original post[^] [v] #307,601

@previous (C)
Not a single fuck~

Actually I as trying to make it as small as possible, for bragging reasons.

Anonymous C replied with this 14 years ago, 9 minutes later, 43 minutes after the original post[^] [v] #307,603

@previous (meticulousMisnomer !M9.6XYhKxM)
How about Console.ReadLine()? That returns a char string. Will that work for what you are trying to do?

meticulousMisnomer !M9.6XYhKxM (OP) replied with this 14 years ago, 9 minutes later, 53 minutes after the original post[^] [v] #307,607

@previous (C)
That orks, thanks. .-.
:

Please familiarise yourself with the rules and markup syntax before posting.