當前位置:編程學習大全網 - 網站源碼 - 用c語言設計壹個用戶登錄軟件,求源代碼

用c語言設計壹個用戶登錄軟件,求源代碼

void student::print()

{

char s[10];

int i=0;

string password="guest";

cout<<endl<<endl<<endl;

cout<<"\t\t**************************************\n";

cout<<"\t\t***** 學生信息管理系統 *****\n";

cout<<"\t\t**************************************\n";

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

s[0]=getch();

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

{

cout<<"*";

s[++i]=getch();

}

s[i]='\0';

cout<<endl;

if(s==password)

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

else

{

cout<<"\t\t您輸入的密碼有誤!無權使用\n";

exit(0);

}

system("cls");

}

  • 上一篇:什麽是dedecms註釋插件
  • 下一篇:十壹歲兒童想學編程,四年級,英語和數學是班裏先三名
  • copyright 2024編程學習大全網