cup
November 1st, 2002, 12:35 PM
I only found out last week that this was possible
typedef int INTEGER, *PINTEGER, **PPINTEGER;
You can also add references to it
typedef int INTEGER, *PINTEGER, &RINTEGER;
What is strange is that you can do this
typedef int const *CPINTEGER, INTEGER;
but not this
typedef int INTEGER, const* CPINTEGER;
I would love to do
typedef list<int> IntList, ::iterator IntListIter;
Does anyone know of any other symbol other than * and & that can appear after the comma?
typedef int INTEGER, *PINTEGER, **PPINTEGER;
You can also add references to it
typedef int INTEGER, *PINTEGER, &RINTEGER;
What is strange is that you can do this
typedef int const *CPINTEGER, INTEGER;
but not this
typedef int INTEGER, const* CPINTEGER;
I would love to do
typedef list<int> IntList, ::iterator IntListIter;
Does anyone know of any other symbol other than * and & that can appear after the comma?