摘要: 一、从控制台读取东西代码片断: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 static void Main(String[] args)... 阅读全文
posted @ 2006-02-14 16:21 孤剑 阅读(359) 评论(0) 推荐(0) 编辑