User profile: Robertlzw

User info
User name:Robertlzw
History
Joined:
Number of posts:103
Latest posts:

C++ copy constructor
Thanks for the discussion. I should have used "delete [ ] old". If we look at what the copy ctor fo...

C++ copy constructor
I am staring at the following code: [code] template <typename T> class A { public: A(const A &sr...

Questions about pointers
Actually it was an interview question I was asked many years ago. Another such an illegal example is...

Questions about pointers
The following code gives an output of 4111 [code] int list[] = { 1, 2, 3, 4, 5, 6, 7}; int *p = l...

Thread and scanf: strange problem
It seems that you are writing to the global byte variable JOB_TO_DO_THREAD_SPEACH accessed by other ...