模擬用戶登陸情景

模擬用戶登陸情景,而且只能登陸三次。 只容許輸入三次密碼,若是密碼正確則提示登陸成,若是三次均輸入錯誤,則退出程序。 代碼: #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char passwd[] = "shijuntao"; int len = strlen(passwd); int i =
相關文章
相關標籤/搜索