资 源 简 介
C#入门代码 25个小程序,初学者有用
一、从控制台读取东西代码片断:
using System
class TestReadConsole
{
public static void Main()
{
Console.Write(Enter your name:)
string strName = Console.ReadLine()
Console.WriteLine( Hi + strName)
}
}-C# Entry code 25 small procedures, a useful one for beginners, to read things from the console code snippet: using System class TestReadConsole (public static void Main () (Console.Write (Enter your name:) string strName = Console.ReadLine () Console.WriteLine (Hi+ strName)))