分类: C/C++
2012-12-06 22:08:17
原文:http://blog.csdn.net/w343051232/article/details/7074788
由于cpp编译下列代码报错
error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned short [7]' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
于是将后缀名改成.c
却出现另外一个诡异的编译错误:error C2143: syntax error : missing ';' before 'type' 并且指向 int len;这行
将代码做如下修改却诡异般的编译过了