首页 > 学院 > 开发设计 > 正文

一个简单的口令程序!

2019-11-17 05:47:33
字体:
来源:转载
供稿:网友
#include<stdio.h>#include<conio.h>#include<dos.h>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(" ");} 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表