宏定义怎么编辑不了
// 1.cpp : Defines the entry point for the console application.//
#include "stdafx.h"
#include "stdio.h"
#define NAME1 wo
#define NAME2 ttang
int main()
{
char NAME1,NAME2;
printf("Hello World!\n");
printf("%slove%s",NAME1,NAME2);
return 0;
}
sh-4.4$ cat main.c
// 1.cpp : Defines the entry point for the console application.
//
//#include "stdafx.h"
//#include "stdio.h"
#define NAME1 wo
#define NAME2 ttang
int main()
{
char NAME1,NAME2;
printf("Hello World!\n");
printf("%slove%s",NAME1,NAME2);
return 0;
}
sh-4.4$ gcc -E main.c
# 1 "main.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "main.c"
int main()
{
char wo,ttang;
printf("Hello World!\n");
printf("%slove%s",wo,ttang);
return 0;
}
sh-4.4$ 人造人 发表于 2018-12-12 13:18
已解决{:10_256:}
页:
[1]