#include <windows.h>
#include <stdio.h>
void SlowPrint(char* string, int sleeptime)
{
int i = 0;
while(string[i] != '\0')
{
printf("%c", string[i]);
Sleep(sleeptime);
i++;
}
}
int main()
{
SlowPrint("Hi, this is a demo. The url is http://write.blog.csdn.net/category/", 50);
printf("\n");
Sleep(2000);
return 0;
}
用C实现打字机模式的一个小程序
最新推荐文章于 2021-05-17 13:27:09 发布