隐式或明式输入密码

时间:2016-02-11 06:32:28
【文件属性】:
文件名称:隐式或明式输入密码
文件大小:1KB
文件格式:C
更新时间:2016-02-11 06:32:28
隐式 //by史瑞 //隐式或明式输入密码 #include #include #include //#define PROCALIM OK typedef struct KeyNode { char ch; struct KeyNode *next; }; #define LEN sizeof(struct KeyNode) struct KeyNode *CreatKeyNode() { struct KeyNode *head; head=(struct KeyNode *)malloc(LEN); #ifndef PROCALIM head->ch=getch(); printf("*"); #else head->ch=getchar(); #endif head->next=NULL; return head; }

网友评论