我从网上copy的源码中有一部分代码是这样的
#define INFOS1P "\xff\xff\xff\xff" \
"infostringresponse\x00" \
"\\" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
"EIP." \
"\\0" \
"\\protocol\\46" \
"\\address\\1.2.3.4:27015" \
"\\players\\3" \
"\\proxytarget\\0" \
"\\lan\\0" \
"\\max\\16" \
"\\gamedir\\valve" \
"\\description\\Half-Life" \
"\\hostname\\Test" \
"\\map\\map" \
"\\type\\l" \
"\\password\\0" \
"\\os\\w" \
"\\secure\\0" \
"\x00"
但编译时出错,这是为什么呢?
我把#define 改成char *INFOS1V =也出错。
最后加;号还是不行,VC中应该怎么连接字符串啊
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!