问题 填空题

有如下程序: #include<iostream> using namespace std; class Con { char ID; public: Con():ID(’A’){cout<<1;) Con(char ID):ID(ID){cout<<2;} Con(Con& c):ID(c.getlD()){cout<<3;) char getID()const{return ID;) }; void show(Con c){cout<<c.getID();} int main() { Con c1; show(c1); Con c2(’B’); show(c2); return 0; } 执行上面程序的输出是 【14】

答案

参考答案:13A23B

单项选择题 A1型题
单项选择题