下列程序有错,请改错并说明理由。#include <iostream>using namespace std;template <class T>class A{private: T x,y,s;public: A(T a,T b)  {x=a,y=b;s=x+y;} void show()  {cout<<\x+y=\<<s<<endl; }};void main(){ A add(10,100); add.show();}______

时间:2022-11-16 06:44:37

相似题目