Date类中声明一个枚举变量public:enum Month{jan=1,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec};Date(int,Month,int);主函数中声明一个Date类变量的时候My_Code::Date b(2,jan,1992);会报错,说jan是声明的标识符?参数2如何写是正确的?
自己搞懂了My_Code::Date b(2,(My_Code::Month)9,1992);b.Show();