| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1366 人关注过本帖
标题:请大家看看这个小程序,急求帮助
只看楼主 加入收藏
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
我在2楼说的是废话,反正for循环用的延时是靠CPU计算来延时,根本不确定。
而Thread用的是ms,就是1000ms = 1s,明白吗?所以延时请用线程。
2005-04-01 22:38
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
以下是引用polestar707在2004-12-24 11:46:54的发言:

//#region Using directives 去掉

using System; //using System.Collections.Generic;去掉 //using System.Text;去掉

//#endregion去掉

namespace ConsoleApplication1 { class Program { static void Main() { Console.WriteLine("If you want to run this program,Enter a PassWord:"); string s = Console.ReadLine(); if (s == "777") { for (int i = 10; i>0; i--) { Console.WriteLine(" {0}Seconds Left",i); } Console.WriteLine("Merry Christmas!"); } else { Console.WriteLine("Hey,No kiding!Dude"); } } } }

就行了。。。。


我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-02 09:07
快速回复:请大家看看这个小程序,急求帮助
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014051 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved