涉及到:
#include "stdafx.h"
#include <stdlib.h>
#include <string.h>
//#define 标识符 字符串 ---》 等价替换 比如: #define NUM 5 NUM就是5 , #define NUM 5; NUM就是5;
// 字符串替换
// typedef 别名
#define MAX(x, y) ((x) > (y)) ? x: y
#define M
int main() {
#include "A.txt"
for (int i = 0; i < 5; i++)
{
printf("%d \n", i);
}
int max = MAX(3, 5);
printf("%d \n", max);
#ifdef N
#ifdef M
printf("%d \n", 110);
#else
printf("%d \n", 120);
#endif
#endif
#ifndef X
printf("%d \n", 130);
#endif
system("pause");
return 0;
}