#include<iostream.h>
int main()
{
int abc;
cout<<"请输入密码"<<endl;
cin>>abc;
if (abc==123456)
{
cout<<"登陆成功"<<endl;
}
else
{
cout<<"密码错误,请重新输入!"<<endl;
}
return 0;
#include<iostream.h>
int main()
{
int abc;
cout<<"请输入密码"<<endl;
cin>>abc;
if (abc==123456)
{
cout<<"登陆成功"<<endl;
}
else
{
cout<<"密码错误,请重新输入!"<<endl;
}
return 0;