[Dev-C++] In constructor parameter list x = null
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-03-31 13:00:30
|
Can someone explain this to me? It's in a header file for a class declaration, for the only constructor of the class. CPenWidthsDlg(CWnd* pParent = NULL); It's derived from CDialog so I assume that's got something to do with it. I am just confused why the parameter is assigned a NULL value. If I pass in a pointer will it just get assigned to NULL? then what's the point? To save me from having to assign it to NULL in the constructor body or something? _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile/mobilehotmail |