69,373
社区成员
发帖
与我相关
我的任务
分享
#include "stdio.h"
#include "time.h"
void wait( int ms );
void AuthorInformation();
int main(void)
{
AuthorInformation();
return 0;
}
void wait( int ms )
{
clock_t endwait;
endwait = clock() + ms * CLOCKS_PER_SEC / 1000;//CLOCKS_PER_SEC宏定义1000,标准时间差
while( clock() < endwait);
}
void AuthorInformation()
{
int i, j;
char cInfor[11][55] = {"\n\n\t\t Welcome To Use This Program.\n\n",
"\n\t Editor:Caoyongzhe \n\n",
"\n\t* Department :Computer Of Science and Technology ",
"\n\t* Profession :Software Engineering ",
"\n\t* Class :08505 ",
"\n\t* N0 :08110650501 ",
"\n\t* Task :commissary in charge of studies ",
"\n\t* City :Dalian ",
"\n\t* Contact :QQ:287983014 ",
"\n\t* Tel :1894098477* ",
"\n\t*Welcome to use it next time! "
};
int len = sizeof(cInfor)/sizeof(char);
for(j = 0; j < 11; j++)
{
for(i = 0; i < 55; i++)
{
if(cInfor[j][i] != '\0')
{
wait( 100 );
}
printf("%c", cInfor[j][i]);
}
}
}
...
printf("%c",str[i]);
fflush(stdout);
...