char message1[100];
char message2[100];
当我尝试做message1 = message2
,我得到错误:
incompatible types when assigning to type
‘char[100]’
from type‘char *’
我有一个像
if(send(clntSocket, echoBuffer, recvMsgSize, 0) != recvMsgSize){
DieWithError("send() failed")
}
插图中的功能。莫名其妙地搞砸了吗? :(
我有一种感觉,也许你不能做=
的字符数组或东西,但我环顾四周,找不到任何东西。
你使用的是C++编译器吗? –