摘要:
如果编译出现如下错误:1>d:\...\vc\platformsdk\include\winnt.h(222) : error C2146: 语法错误 : 缺少“;”(在标识符“PVOID64”的前面)解决方法:方法1:typedef void *PVOID;typedef void * POINTER_64 PVOID64;在它之前加下:#define POINTER_64 __ptr64方法2(可能不成功):调整include文件夹的顺序来解决问题,platform SDK中的winnt.hDDK中的,vs自带的winnt.h有多个。 dxsdk 中的这些所用到的winnt.h版本不 阅读全文
摘要:
ctype.h 头文件方法1.static void toLower(std::string& s){char * buf;const char * end = s.c_str() + s.length();for( buf = (char*)s.c_str() ; buf != end ; buf ++ ){ *buf = ::tolower( *buf );}} tolower(); 转换为小写toupper();转换为大写 方法2.void strtoupper(string s){ for(int i=0;i<strlen(s.c_str());i++) cout< 阅读全文