I only know after work. It turns outC LanguageI am still so unfamiliar. I only know some common usage, but I am not clear about Some uncommon ones. From today on, I will start to sort them out!
Typedef
TheFormulaTo follow is: typedef [attributes] datatype aliasname;
Example:
Typedef short smallnumber;
Typedef unsigned int positive;
Typedef double * pdouble;
Typedef string fivestrings [5];
Mean:
In typedef short smallnumber, smallnumber can now be used as a data type to declare a variable for a small integer.
In the second example, typedef unsigned int positive, the positive word can then be used to declare a variable of an unsigned int type.
after typedef double * pdouble, the word pdouble can be used to declare a pointer to double.
by defining typedef string fivestrings [5], fivestrings can be used to declare an array of 5 strings with each string being of Type string.