#include <iostream> #include <windows.h> using namespace std; int main() { cout << "请输入账号:123" << endl; cout << "请输入密码:456" << endl; cout << "用空格或回车隔开" << endl; int user = 123, pw = 456, u, p; cin >> u >> p; if(u == user) { if(p == pw) { cout << "登录成功"; ShellExecute(NULL,"open"," XCXMH.360doc.com ",NULL,NULL,SW_SHOW); } else { cout << "密码错误"; } } else { cout << "账号错误"; } return 0; }
|
|