當前位置:編程學習大全網 - 網站源碼 - 手機登錄源代碼

手機登錄源代碼

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”);

}

  • 上一篇:賽車10碼怎麽賺錢
  • 下一篇:雲好輕mini如何設置稱重單位?
  • copyright 2024編程學習大全網