當前位置:編程學習大全網 - 網站源碼 - 簡潔的登錄源代碼

簡潔的登錄源代碼

void學生::print()

{

char s[10];

int I = 0;

string password = " guest

cout & lt& ltendl & lt& ltendl & lt& ltendl

cout & lt& lt”\ t \ t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n”;

cout & lt& lt”\ t \ t * * * *學生信息管理系統* * * * \ n”;

cout & lt& lt”\ t \ t * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n”;

cout & lt& lt" \ t \ t \請輸入密碼(7位數):";

s[0]= getch();

while(s[i]!='\r') //輸入Enter鍵停止。

{

cout & lt& lt"*";

s[++ I]= getch();

}

s[I]= ' \ 0 ';

cout & lt& ltendl

如果(s = =密碼)

cout & lt& lt" \ t \ t \歡迎使用學生信息管理系統!\ n ";

其他

{

cout & lt& lt" \ t \ t \您輸入的密碼不正確!未授權使用\ n ";

退出(0);

}

系統(“cls”);

}

  • 上一篇:無人直播用什麽軟件最好
  • 下一篇:Android Studio怎麽用gradle把github的壹個開源庫添加進來
  • copyright 2024編程學習大全網