Study Notes (02): C # fast entry -Console.WriteLine Comments

Learning immediately: https://edu.csdn.net/course/play/20589/257714?utm_source=blogtoedu

Output:

   Console.Write ( "to output content"); // output after the contents will not wrap, the cursor after the content

   Console.WriteLine ( "to output content"); // output after the contents wrap, the cursor on the second line

 

   Console.ReadKey (); // pause and wait for a key input, the input value is displayed on the screen

 

Note: Console class is an input / output class provided by .NET responsible for the screen, the class namespace System below, so the need references before use. If not introduced System namespace, to be added in front of the System namespace using Console categories, namely:

  System.Console.WriteLine ( "to output content")

Released five original articles · won praise 0 · views 20000 +

Guess you like

Origin blog.csdn.net/zimoidieying/article/details/105157247
Recommended