第一个输出程序Console.WriteLine

王朝学院·作者佚名  2016-08-28
窄屏简体版  字體: 小  |  中  |  大  |  超大  

1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Threading.Tasks;67namespace_01个程序8{9classPRogram10{11staticvoidMain(string[] args)12{13Console.WriteLine("************************");1415//WriteLine输出字符并将光标移到下行,Write输出字符但光标不移动到下行16Console.WriteLine("* 这是我第一个C#程序 *");17Console.WriteLine("************************");18Console.WriteLine("典菲菲反\"\"对丰富");1920//""在字符中如何显示 \"21Console.ReadKey();22}23}24}

运行效果:

[flash=500,400]http://s1.knowsky.com/20160211/kug1yo51gqu35.jpg[/flash]

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航