2014年3月12日

C# 常用代码片段

摘要: 一、从控制台读取东西代码片断:using System;class TestReadConsole{ public static void Main() { Console.Write(Enter your name:); string strName = Console.ReadLine(); Console.WriteLine( Hi + strName); }}二、读文件代码片断:using System; using System.IO; public class TestReadFile { public stat... 阅读全文

posted @ 2014-03-12 11:43 nanphon 阅读(374) 评论(0) 推荐(0) 编辑

导航