|
From: Jason S. <mys...@op...> - 2002-04-19 08:21:37
|
It's an initalizer list. A short summary of them can be found here, http://pstonge.stmarys.medford.or.us/adv_cpp_1/lectures/advanced_functions2. htm, and here, http://oakroadsystems.com/codeprac/inher.htm. They're short, but to the point. Basically it's initalizing a data member to a value as it's created, instead of normal constructors which do so afterwards. Jason ----- Original Message ----- From: "Daniel Glenfield" <sp...@ho...> To: <dev...@li...> Sent: Friday, April 19, 2002 4:01 AM Subject: [Dev-C++] scope resolution +1 > What does it mean when you have the scope resolution operator and the single > : in the same bit of code? > > e.g. > > CDialog1::CDialog1(CWnd* pParent /*=NULL*/) > : CDialog(CDialog1::IDD, pParent) > > ? |