摘要:
新建一个类using System;namespace 猜数字小游戏{ public class Play { public void play() { Random r = new Random(); int i = r.Next(0, 100); int j; int n = 1; Flag: Console.WriteLine("请猜猜它是多少[温馨提示:0-100之间]:"); do { j = int.Parse(Console.ReadLine()); if (j == i) { Console.WriteLine("恭喜你在第{0}次猜对了" 阅读全文
posted @ 2012-12-28 16:55
蓬莱仙羽
阅读(315)
评论(0)
推荐(0)
摘要:
源码如下:using System;using System.Windows.Forms;using System.Runtime.InteropServices;namespace 关机重启{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } [DllImport("user32.dll", EntryPoint = "ExitWindowsEx", CharSet = CharSet.Ansi)] private static extern in 阅读全文
posted @ 2012-12-28 16:30
蓬莱仙羽
阅读(170)
评论(0)
推荐(0)

浙公网安备 33010602011771号