c++的字符串合并不是靠+号连接的·~郁闷~现在才明白~丢人了~strcpy()strcat()

 char sql[512];

strcpy(sql,"update vehicle_info set VNO = ");
 strcat(sql,"'");
 strcat(sql,readCol[1]);
 strcat(sql,"'");
 strcat(sql,"where VID =");
 strcat(sql,readCol[0]);

原文地址:https://www.cnblogs.com/8586/p/1311168.html