A、 枚举常量NAME的值为1 B、 枚举常量NUMBER的值为1 C、 枚举常量MINUS的值为6 D、 枚举常量PRINT的值为10
单项选择题按照标识符的要求,下列选项中,()符号不能组成标识符。
A、 连接符 B、 下划线 C、 大小写字母 D、 数字字符
单项选择题有如下程序: #include<iostream> using namespace std; class XX protected: int k; public: XX(int n=5):k(n) ; ~xx() cout<< XX ; virtual void f()const=0; ; inline void XX::f()const cout<<k+3; ; class YY:public XX public: ~YY() cout<< YY ; void f()const cout<<k-3;XX::f(); ; int main() XX &p=*new YY; P.f(); delete &p; return 0; 执行上面的程序将输出()。
A、 28XX B、 28YYXX C、 33XX D、 -33XXYY