第一次学习C#,程序运行不起来,高手帮忙看看
以下是代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ex02
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("-----------------------------------------------------------");
Console.WriteLine("-----------------------------------------------------------");
Console.WriteLine("---------------------趣味猜数字游戏------------------------");
Console.WriteLine("--------------------- ------------------------");
Console.WriteLine("---------------------版权所有人:Y------------------------");
Console.WriteLine("-----------------------------------------------------------");
Console.WriteLine("-----------------------------------------------------------");
Console.WriteLine();
int guess;
int min;
int max;
int put;
string tmp;
Random r = new Random();
guess=r.Next(1, 100);
min=1;
max=100;
Console.WriteLine("待猜数字已生成,范围是1至100\n");
}
}
}
不知道是不是这样排的,现在运行调试程序是一闪而过,没有停留的画面。弄得一头雾水
还有WriteLine Random Next这里一定要区分大小写字母吗?
我是新手,请别见笑。第一次在csdn发帖