#include <iostream>
using namespace std;
enum language{java, c, pascal, fortran, vc, vb, cpp} lang;
char name[][10] = {
"java",
"c",
"pascal",
"fortran",
"vc",
"vb",
"cpp"
};
int main()
{
lang = fortran;
cout << name[lang] << endl;
lang = java;
cout << name[lang] << endl;
lang = pascal;
cout << name[lang] << endl;
lang = (language) 6;//这个强转经典
cout << name[lang] << endl;
return 0;
}