C/C++日志17
typedef 原始类型 新类型名;
typedef unsigned int uint; uint a, b; // 相当于 unsigned int a, b;
struct Person
{
char name[100];
int age;
};
typedef struct Person Person_t; // 使用别名 Person_t
Person_t p1; // 相当于 struct Person p1;
typedef int* IntPointer; IntPointer p1, p2; // 相当于 int *p1, *p2;
typedef int (*Operation)(int, int); Operation add; // add 是一个指向函数的指针,函数原型为:int func(int, int)


