C++left operand must be l-value#include class CA{public:double *p;int n;public:CA(int n1){n=n1;p=new double[n];}~CA(){delete []p;}CA(CA &t){n=t.n;p=t.p;}double operator[](int i){return p[i];}};void main(){CA t(5);double sum=0,d;for(int i

来源:学生作业帮助网 编辑:作业帮 时间:2024/09/12 04:14:59
xAK0O9ui еYdăqc _fz+%m1K%VK ibL=T#"*c  ^倒Šp̑Eʄ߳mZ9sYq+0룱ujT6 A+MI~BgODqnP$iDեXȔ2QBT!av3Wv &*grvNbd]&1piuM@G%z-&8u[L&>$5N2* 'vHjmlZ1 \1/vJ ԑ 2[Q"czx߮gr\_WDo?s5o޴ޞN;!6=h