g_pMenuFont is a pointer of/to the type CD3Dfont, g_pCurrentMenu is a pointer of/to the type CMenuItem, and both are pointing to null. In case the positioning of the asterick was confusing you, you can have the asterick next to the data type, in between, or next to the declared variable, though I usually just leave it next to the pointer. (e.g. if you had char c, *p=&c; you obviously wouldn't want the asterick next to char there, so for simplicities sake I just always do it that.)
Jason
----- Original Message -----
From: Daniel Glenfield
To: dev...@li...
Sent: Wednesday, October 10, 2001 5:14 PM
Subject: [Dev-C++] what does this mean?
The bit I'm confused about is the asterisks(*). In the example below, CD3DFont* and CMenuItem* aren't pointers are they? Are g_pMenuFont and g_pCurrentMenu pointers?
Please help lol
CD3DFont* g_pMenuFont = NULL;
CMenuItem* g_pCurrentMenu = NULL;
------------------------------------------------------------------------------
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|