C
C#9mo ago
Nyxoy102

✅ Help

I'm new to c# and i have a project where i have to start every line with the character '>', and the problem is that when i type en new line the first letter of the word goes before the '>'
No description
16 Replies
leowest
leowest9mo ago
$details
MODiX
MODiX9mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
Nyxoy102
Nyxoy102OP9mo ago
No description
Nyxoy102
Nyxoy102OP9mo ago
i want it so the '>' goes before the word i wanna type
leowest
leowest9mo ago
I dont see in your code where it would cause the letter to be in front that way thou Console.Write("> "); will print > without moving to the next Console.ReadLine() without true will display what you're typing on the current line and then u hit enter it will print so in the above code there is nothing that does h> ello
Nyxoy102
Nyxoy102OP9mo ago
so my code is right ?
leowest
leowest9mo ago
ah ok I see the problem u have to remove Console.ReadKey() that is what gives u the letter before
Nyxoy102
Nyxoy102OP9mo ago
ow
leowest
leowest9mo ago
Console.ReadKey() will wait until u type a letter so u type h
Nyxoy102
Nyxoy102OP9mo ago
No description
Nyxoy102
Nyxoy102OP9mo ago
😄
leowest
leowest9mo ago
👍
Nyxoy102
Nyxoy102OP9mo ago
that was a stupid mistake
leowest
leowest9mo ago
no worries I almost missed it too haha $close
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
Nyxoy102
Nyxoy102OP9mo ago
thanks
Want results from more Discord servers?
Add your server