随笔分类 - VC
摘要:错误1: template<class T>void temp(std::vector<T>& container){ std::vector<T>::const_iterator p; //error: expected ‘;’ before ‘p’ for(p = container.begin
阅读全文
摘要:示例如下:class MyClass{public: MyClass(int a) : _a(a) { } MyClass(const MyClass& rhs){ new(this)MyClass(rhs._a); // placement new } MyClass & operator = (...
阅读全文
摘要:解决办法: 首先去下载一个FileTool(http://download.microsoft.com/download/vc60ent/s1/6.0/w9xnt4/en-us/filetool.exe 下载后解压缩),下载过来是一个C++原始文件,需要通过VC编译一下产生一个 FileTool.dll 将这个插件复制到X:/Program Files/Microsoft Visual Studio/Common/MSDev98/AddIns 重新打开VC6,Tools->Customize->Add-ins and Macro Files,选中FileTool Developer
阅读全文
摘要:1.出现连接错误时的处理方式 在project->setting中,打开link选项卡,加上glew.lib 或在文件中加上#progmma comment(lib, "glew.lib")
阅读全文