#include<iostream.h>
#include<stdio.h>
void main(void)
{
int key;
cout<<"***多人密码***\n\n";
cout<<"请输入密码: ";
cin>>key;
switch(key)
{
case 123:
cout<<"欢迎您,何刘洋.\n\n"; break;
case 456:
cout<<"欢迎您,赵建强.\n\n"; break;
default:
cout<<"没有您的档案 \n 程序终止 \07\n\n";
}
}
#include<stdio.h>
void main(void)
{
int key;
cout<<"***多人密码***\n\n";
cout<<"请输入密码: ";
cin>>key;
switch(key)
{
case 123:
cout<<"欢迎您,何刘洋.\n\n"; break;
case 456:
cout<<"欢迎您,赵建强.\n\n"; break;
default:
cout<<"没有您的档案 \n 程序终止 \07\n\n";
}
}