Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

問c++???

0 views
Skip to first unread message

¨g öt ÃM ¤h

unread,
Oct 23, 1999, 3:00:00 AM10/23/99
to

請問一c++中~~~delay是要如何用~~~~在dos下執行~~~??
或~sleep的用法如何用~~~??


--

[1;32m 沒有今天的努力~~~ [m
[1;36m就沒有成功的一天~~~ [m
[1;34m☆ [1;37m★ [1;32m★ [1;35mhttp://www.hello.com.tw/~yinghsun/ [m [1;32m★ [1;37m★ [1;34m☆ [m

--
[1;32m※ 發信站 : [36m亞東方城BBS/ [35mfreebsd.oit.edu.tw/ [33m192.192.69.134 [m
◆ From: h67.s98.ts30.hi

junyuo

unread,
Oct 24, 1999, 3:00:00 AM10/24/99
to
※ 引述《MASM...@freebsd.oit.edu.tw ( 狂 飆 騎 士 )》之銘言:
> 請問一c++中~~~delay是要如何用~~~~在dos下執行~~~??
> 或~sleep的用法如何用~~~??

#include <dos.h>
#include <stdio.h>
int main(void)
{
int i;
for (i=0; i<5; i++)
{
printf("sleeping for %d seconds\n", i);
sleep(i);
return 0;
}
}

with a call to sleep, the current program is supposed from execution for
the number of seconds specified by argument seconds.
--
[1;32m※ Origin: [33m雲淡風清 [37m<bbs.au.edu.tw> [m
[1;31m◆ From: [36mppp26.au.edu.tw [m

Terry

unread,
Oct 26, 1999, 3:00:00 AM10/26/99
to
※ 引述《MASM...@freebsd.oit.edu.tw ( 狂 飆 騎 士 )》之銘言:
: 請問一c++中~~~delay是要如何用~~~~在dos下執行~~~??
: 或~sleep的用法如何用~~~??

first of all you should do ..
#include <conio.h>
then you could use this function..

for example:

#include <sdtio.h>
#include <conio.h>
void main()
{
delay(1000);
printf(" I love you: ");
}

try this ...

--
[1;32m─ 發信站 : 台灣科大電機 黃金體驗 <bbs.ee.ntust.edu.tw> [140.118.7.40] ────
[0m 原作者戰績 [Login: 6] [Post: 0] , 來自 [terry.dorm.ntust.edu.tw]

0 new messages