I have a private vector in Class A, after the constructor called, this vector is assigned because I put (for int i=0;i<vec.size( );i++) {cout<<vec[i]<<endl;} in side the constructor just to make sure vector is initilized and has size.
but when the accessor function is called, it seems that private vector is not assigned any value, the size is still 0. so what's going on? any help would be appreciated.
YZ
but when the accessor function is called, it seems that private vector is not assigned any value, the size is still 0. so what's going on? any help would be appreciated.
YZ
Comment