08 2011 档案
摘要:#include <fstream>#include <iostream>#include <stdlib.h>#include <vector>#include <string>#include <stdio.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <errno.h>#include <sys/file.h>#
阅读全文
摘要:命令行下输入:convert X: /fs:ntfs可将FAT格式转换为NTFS格式.X:为要转换的盘符.例如把C盘转成ntfs格式:convert c: /fs:ntfs也能转U盘
阅读全文
摘要:error C2061: 语法错误 : 标识符“CString”#include <afx.h>
阅读全文
摘要:1.新建一个文件夹2.把要转换的图片全放在这个文件里3.在这个文件中新建个TXT文件4.在TXT文件中输入@ren *.pif *.gif PIF代表现在的格式GIF代表要转换的格式5.把TXT文件重名为BAT文件6.双击BAT文件就OK了
阅读全文
摘要:如果编译出现如下错误: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<
阅读全文