如何打印枚举变量的内容?
#include <stdio.h>
#include <string>
using namespace std;
struct Student
{
int math;
int english;
};
enum myclass {
chinese,
english,
math,
PE,
art,
computer,
};
int main(int argc, char** argv)
{
struct Student s = { 95,35 };
myclass my = myclass::math;
printf("?");
return 0;
}