define 大家帮忙看下怎么改
#include<stdio.h>#include<string.h>
#define Conn(a,b) a##b
int main()
{
char* str = Conn("aaa", "bbb");
printf("%s",str);
return 0;
}
怎么不能输出"asdfadf"
这是报的错误!
C:\Users\Administrator\Desktop\未命名1.c In function 'main':
7 18 C:\Users\Administrator\Desktop\未命名1.c [Error] pasting ""aaa"" and ""bbb"" does not give a valid preprocessing token
3 19 C:\Users\Administrator\Desktop\未命名1.c [Note] in definition of macro 'Conn'
[此贴子已经被作者于2022-9-9 10:27编辑过]