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++編譯器嗎? –