enum to string[code]enum day {monday, tuesday}; [/code] Anyone can tell how to transfer monday, tuesday to strin...
how can private data be accessed in copy CTORThe following code is weird, the reason is that private data can be accessed here! but it really can...
the problem of copy ctorI just add the copy ctor to the code, it still fails, maybe it's because the memory is not cleared ...
the problem of copy ctorclass A { int *p; public: A(int N){ p = new int[N];} ~A() {delete [] p; p = NULL;} }...
This user does not accept Private Messages