|
From: Julio L. <ju2...@ya...> - 2001-10-13 17:29:34
|
CD3DFont* and CMenuItem* are NOT pointers, they are the type of the pointer variable. g_pMenuFont and g_pCurrentMenu are the pointers, which according to what you wrote point to nothing. It is the same, but probably less confusing, or at least to me, to write it this way: CD3DFont *g_pMenuFont = NULL; CMenuItem *g_pCurrentMenu = NULL; //all the same type *pointer= NULL; type * pointer= MULL; type* pointer= NULL; ORIGINAL MESSAGE: FROM: Daniel GlenfieldDATE: 10/10/2001 14:14:42SUBJECT: [Dev-C++] what does this mean? html><div style='background-color:'><DIV> <DIV> <DIV>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?</DIV> <DIV> </DIV> <DIV>Please help lol</DIV> <DIV> </DIV> <DIV>CD3DFont* g_pMenuFont = NULL; </DIV> <DIV>CMenuItem* g_pCurrentMenu = NULL;</DIV></DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> _______________________________________________ Dev-cpp-users mailing list <EMAIL: PROTECTED> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ===== Julio __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com |