#include <stdio.h>
int main(void)
{
int i ;
char ch[11] = "9876543210" ;
printf("%s\n\n", ch) ;
for(i = 0;i < 11;i++)
{
printf("%c%c", 13, ch[i]) ;
sleep(1) ;
}
getch() ;
}
#include <stdio.h>
int main(void)
{
int i ;
char ch[11] = "9876543210" ;
printf("%s\n\n", ch) ;
for(i = 0;i < 11;i++)
{
printf("%c%c", 13, ch[i]) ;
sleep(1) ;
}
getch() ;
}
#include <stdio.h>
#include <stdlib.h>int main(void)
{
int i ;
char ch[] = \"9876543210\n\" ;
for(i = 0;i < 11;i++)
{
printf(\"\b%c\", ch[i]) ;
_sleep(1000) ;
}
}
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>int main(void)
{
int x,i;
printf(\"时间设定(s):\");
scanf(\"%d\",&x);
for(i=x;i>=0;i--){
printf(\"\r%10d\",i);
_sleep(1000);
}
printf(\"时间已到!\n\");
while(!kbhit()){
printf(\"\a\");
_sleep(500);
}
}
有意思!!!
但是我在VC编译不能打开 conio.h
用c-free编译报错于kbhit说函数不存在........
有意思!!!
但是我在VC编译不能打开 conio.h
用c-free编译报错于kbhit说函数不存在........
CFREE 下的默认拓展名是cpp 你把CPP改成c
就可以了