char* 类型重定义为 T
例程
#include <stdio.h>
#include <windows.h>
#define OBJECT_TYPE(type) type*
typedef OBJECT_TYPE(char) T;
int main(int argc, char **argv)
{
T test = "hello";
printf("%s\n", test);
system("pause");
return 0;
}
char* 类型重定义为 T
例程
#include <stdio.h>
#include <windows.h>
#define OBJECT_TYPE(type) type*
typedef OBJECT_TYPE(char) T;
int main(int argc, char **argv)
{
T test = "hello";
printf("%s\n", test);
system("pause");
return 0;
}