Since 5/6/2012 3:53:10 AM, johnsun has written 7 articles and participated in 4 conversations. johnsun signature: johnsun
johnsun's articles:
Items(7) /1
initialization problem536 (2/5/2004 2:03:44 PM) comp.lang.c++ Hi, I have a class with copy ctor and assignment operator. MyClasss obj1(data); MyClass obj2=obj1; in this case, the copy constructor is invoked instead of assignment operator. I cannot understand why? Thank... john
private datamember access control321 (2/5/2004 1:58:38 PM) comp.lang.c++ Hi, I don't understand one thing when authoring cp ctor. The below is simplified class and cp constructor. When initializing the data member, we use object ref TEST to access its private member m_x. Why in thi... john
virtual function and polymorphism617 (1/22/2004 12:38:59 AM) comp.lang.c++ Hello, I am not newbie C++ developer infact :). But till recently I would like dig up more about C++. I know those OO details. But when people talking OO they focused on the polymorphism, and think the "old c... john
c runtime130 (1/21/2004 8:04:32 AM) comp.lang.c++ Hello all, I know c run time term, and also I use c run time lib. But I still confused about what's the c run time? Is there run time environment created before loading the c/c++ program? If there is, what's i... john
c runtime651 (1/21/2004 7:23:02 AM) comp.lang.c Hello all, I know c run time term, and also I use c run time lib. But I still confused about what's the c run time? Is there run time environment created before loading the c/c++ program? If there is, what's i... john
opeator new question: again!238 (1/14/2004 10:47:17 PM) comp.lang.c++ Here is snippet code. class B contains class A and A1 as data member. when client code execute new B(), B construtor throw exception, ... C++ will call destrcutor of A and A1 seperately. This is very confusing.... john
operator new question816 (1/14/2004 9:39:48 AM) comp.lang.c++ hello, When we use new operator to user defined type, constructor will be called and a memory block is created in heap. My question: where those non-pointer data members belonging to this user-defined class wi... john
johnsun's replies:
Items(3) /1
operator new question816 (1/14/2004 9:39:48 AM) comp.lang.c++ hello, When we use new operator to user defined type, constructor will be called and a memory block is created in heap. My question: where those non-pointer data members belonging to this user-defined class wi... johnsun(11)
virtual function and polymorphism617 (1/22/2004 12:38:59 AM) comp.lang.c++ Hello, I am not newbie C++ developer infact :). But till recently I would like dig up more about C++. I know those OO details. But when people talking OO they focused on the polymorphism, and think the "old c... johnsun(11)
private datamember access control321 (2/5/2004 1:58:38 PM) comp.lang.c++ Hi, I don't understand one thing when authoring cp ctor. The below is simplified class and cp constructor. When initializing the data member, we use object ref TEST to access its private member m_x. Why in thi... johnsun(11)