The struct keyword was introduced in 'C', its original functionality is documented here.
C++ has added two new features to structures.
ANSI C approch to structures. |
typedef struct Person {int age; char *name} Person_t;
struct Person FirstMan;
Person_t SecondMan;
|
C++ structures. |
struct Person {int age; char *name};
Person FirstMan;
Person SecondMan;
|
Example program.
C++ Keywords
C Keywords
| Top | Master Index | C++ Keywords | Functions |