//2012年12月1日17:10:03
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int select;
system("cls");//清屏
cout << "****************************\n";
cout << "* 可选择的按键 *\n";
cout << "*1.巧克力 *\n";
cout << "*2.蛋糕 *\n";
cout << "*3.可口可乐 *\n";
cout << "****************************\n";
cout << "请在1~3中选择按键:\n";
cin >> select;
switch (select)
{
case 1:
cout << "你选择了巧克力";
break;
case 2:
cout << "你选择了蛋糕";
break;
case 3:
cout << "你选择了可口可乐";
break;
default:
cout << "\n输入错误\n";
break;
}
cout << endl;
return 0;
}