?? ps.cpp
字號:
/*寫了一個密碼輸出和校驗函數,僅供參考。
可以加在自己大作業程序里。*/
int CheckPass(char password[20],char pass_in[20]);
void GetPass(char pass_in[20]);
int CheckPass(char password[20],char pass_in[20]){
return (!strcmp(password,pass_in));
}
void GetPass(char pass_in[20]){
char temp;
int i=0;
clrscr();
cprintf("Input your password : ");
while((temp=getch())!='\r'){
pass_in[i]=temp;
putchar('*');
i++;
}
pass_in[i]='\0';
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -