C++代码运行后乱码
#include <iostream>enum ChenShi{Xm = 1,Fz = 2, Qz = 3,Zz = 4};
void ShuRu(ChenShi aabb)
{
using namespace std;
switch (aabb)
{
case Xm:
{
printf("第一\n");
cin.get();
break;
}
case Fz:
{
cout <<"第二\n";
cin.get();
break;
}
case Qz:
{
cout <<"第三\n";
cin.get();
break;
}
case Zz:
{
cout <<"第四\n" ;
cin.get();
break;
}
default:
break;
}
}
int main()
{
using namespace std;
ChenShi hao123 = Xm ;
ShuRu(hao123);
return 0;
}
大神好,请教一下C++的问题,上面的代码运行后乱码是怎么回事?(Visual 2010)