低级错误

扫码查看
1. char *pSendBuff = (char *)malloc(iLenSend); 

Q : waring: incompatible implicit declaration of built-in function 'malloc'
A : #include

2. switch (integer) {
     case 1:
         ...
         ...
         break;
     case 2:
         ...
         ...
         break;
   }
Q : //case 2 所在行. error: a label can only be part of a statement and a declaration is not a statement
A : switch (integer) {
     case 1:
         {
         ...
         ...
         }
         break;
     case 2:
         {
         ...
         ...
         }
         break;
   }

10-25 12:19
查看更多