User: harryxu

  • Public profile

User profile: harryxu

User info
User name:harryxu
History
Joined:
Number of posts:4
Latest posts:

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 CTOR
The following code is weird, the reason is that private data can be accessed here! but it really can...

the problem of copy ctor
I just add the copy ctor to the code, it still fails, maybe it's because the memory is not cleared ...

the problem of copy ctor
class A { int *p; public: A(int N){ p = new int[N];} ~A() {delete [] p; p = NULL;} }...

This user does not accept Private Messages