M
Mike Copeland
Is there a C/C++ language capability to "equate" or use a synonym for
an identifier? I have the following declaration:
struct DEF_STRUCT
{
int EPace; // event maximum pace
int TFCount; // Total Finishers Counts
short ADepth; // Awards Depth
short SFMales, SFFemales; // Skipped Finishers
unsigned short dbeMales, dbeFemales;
unsigned short finMales, finFemales;
unsigned short prtMales, prtFemales;
float EDist; // event distance in miles
[etc.]
} ;
and I'd like to "reuse" some of the names (such as EPace or ADepth) with
different identifiers. That is, in some of my programs where I have
this structure declared I'd like to use a different name for, say,
EPace, because I'm not actually using that data element in that
particular application.
Other languages such as Pascal have an "equate" statement which does
this, and I can't find such a feature in C/C++. Does this exist? TIA
an identifier? I have the following declaration:
struct DEF_STRUCT
{
int EPace; // event maximum pace
int TFCount; // Total Finishers Counts
short ADepth; // Awards Depth
short SFMales, SFFemales; // Skipped Finishers
unsigned short dbeMales, dbeFemales;
unsigned short finMales, finFemales;
unsigned short prtMales, prtFemales;
float EDist; // event distance in miles
[etc.]
} ;
and I'd like to "reuse" some of the names (such as EPace or ADepth) with
different identifiers. That is, in some of my programs where I have
this structure declared I'd like to use a different name for, say,
EPace, because I'm not actually using that data element in that
particular application.
Other languages such as Pascal have an "equate" statement which does
this, and I can't find such a feature in C/C++. Does this exist? TIA