c2110专题

关于error C2110: cannot add two pointers的处理

当出现error C2110: cannot add two pointers时,是因为字符串相加不能以常量开头,举例如下:strCheckSum = FREAM_LENGHT+ FREAM_TYPE + strResult; FREAM_LENGHT、FREAM_TYPE 都是字符串常量宏,如果按照上面方式书写代码会出现上面的错误。改为:strCheckSum = strCheckSum + F