It merely creates an additional name for an existing data type.
eg:
typedef int Boolean; //此声明定义了一个int的同义字,名字为Boolean
const int TRUE = 1;
const int FALSE = 0;
...
Boolean dataOK;
...
dataOK = TRUE;
It merely creates an additional name for an existing data type.
eg:
typedef int Boolean; //此声明定义了一个int的同义字,名字为Boolean
const int TRUE = 1;
const int FALSE = 0;
...
Boolean dataOK;
...
dataOK = TRUE;