delete pics to save space
This commit is contained in:
22
history_source/ccf 入门篇/U5/5.4.7.cpp
Normal file
22
history_source/ccf 入门篇/U5/5.4.7.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include<iostream>
|
||||
#include<string>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
string password,sr;
|
||||
char sr2;
|
||||
password="NOIP@CCF";
|
||||
while(true)
|
||||
{
|
||||
cout<<">>> ";
|
||||
cin>>sr2;
|
||||
if(sr2=='N') break;
|
||||
else
|
||||
{
|
||||
cin>>sr;
|
||||
if(sr==password) {cout<<"Succrss";break;}
|
||||
else cout<<"Sorry"<<endl;
|
||||
}
|
||||
}
|
||||
if(sr==password) while(true);
|
||||
}
|
Reference in New Issue
Block a user