11-03-2014, 03:27 PM
Computer Science With C++
Structure
Collection of variables referenced under one name providing of convenient means of keeping related information together
A Structure and Class are similar Objects;Structure can be said to be a class with keyword struct.
Enumeration
An alternative method for naming integer constants
enum{START,PAUSE,GOD};
Defines 3 integer constants called enumerator and assigns value to them.
Enumerator value are by default assigned increasing from 0.
i.e,
const int START=0;
const int PAUSE=1;
const int GOD=2;
ENUM STATUS{START,PAUSE,GOD};//enumeration can be named