C#小游戏-------猜数字(转载)
摘要:
学习任何的语言,都是在不断的编写中提高了.勿以简小而不为.using System;
public class Game
{
private string number;
private static int x,y;
private int count=0;
public void init()
{
do{
Console.WriteLine("Please input number:");
number=(string)Console.ReadLine();
}while(number.Length!=4);
}
public void play()
{
string ready="1234"; 阅读全文
posted @ 2007-08-30 18:17 9who 阅读(569) 评论(0) 推荐(0) 编辑