龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > C/C++开发 >

一个简单的口令程序!

时间:2009-12-22 15:42来源:未知 作者:admin 点击:
分享到:

#include

#include

#include

void main(void)

{ strUCt date today;

struct time now;

getdate(&today);

gettime(&now);

textcolor(WHITE);

textbackground(BLUE);

do { clrscr();

gotoxy(25,10);

printf("today's date is %d-%d-%d",today.da_mon,today.da_day,today.da_year);

gotoxy(28,12);

printf("the time is %2d:%2d:%2d",now.ti_hour,now.ti_min,now.ti_sec);

gotoxy(1,1);

} while(atoi((char*)getpass("passWord:"))!=today.da_mon+today.da_day+now.ti_hour);

textcolor(WHITE);

textbackground(BLACK);

clrscr();

gotoxy(1,1);

printf(" ");

}

  

精彩图集

赞助商链接