0
Why my console is so quickly close so I can't see my code
So after I write console.writeline, and execute the program the console(cmd) are quickly close so I can't see my code is working or not. anyone have the answers?
2 Antworten
+ 3
It closes because it is finished. You can add Console.Readline() or Console.Read() or Console.ReadKey() method before return or if youre using VisualStudio you can execute your code with ctrl+f5.
0
I'm not using any IDE ( Stupid me )
I'm typing the code with notepad.
Then compiled it with the batch file.
csc HelloWorld.cs
HelloWorld.exe
pause