#include <iostream> using namespace std; int main() { string name; string pwd; while (1) { system("cls"); cout << "请输入账号:"; cin >> name; cout << "请输入密码:"; cin >> pwd; if (name == "54hk" && pwd == "123456") { break; } else { cout << "用户名或密码错误!" << endl; } } system("cls"); cout << "1.网站404攻击" << endl; cout << "2.网站篡改攻击" << endl; cout << "3.网站攻击记录" << endl; cout << "4.DNS 攻击" << endl; cout << "5.服务器重启攻击" << endl; system("pause"); return 0; }
标签:name,string,pwd,C++,while,账号密码,cout From: https://www.cnblogs.com/smartlearn/p/16585932.html