题目内容
写出下列程序的执行结果是:__________________。#include using namespace std;template class Base{ public: Base( T i , T j ) { x = i; y = j; } T sum() { return x + y; }private: T x , y;} ;void main(){ Base obj2(3.3,5.5); cout << obj2.sum() <<","; Base obj1(3,5); cout << obj1.sum() << endl;}
查看答案
搜索结果不匹配?点我反馈
更多问题