1 #include 2 #include 3 #include 4 #include 5 #pragma comment(lib, "shell32.lib") 6 using namespace std; 7 #ifdef _UNICODE 8 typedef wstring tstring; ... ...
分类:
编程语言 时间:
2018-10-13 18:17:18
阅读次数:
365
1.问题待做,在linker的input输入xxx.lib以后,按照以前的做法是在debug或者release下面放xxx.dll,但是张韬让我改环境变量,是不是通过环境变量就能直接找到dll了,而不用放在debug或者release目录下? 2.打开vs tools后,选择x86版本,出现命令行以 ...
分类:
其他好文 时间:
2018-09-29 19:13:47
阅读次数:
173
在C++中#include<engine.h>后再包含C++的标准库头文件时,编译器会报char16_t 已定义 解决这个问题的代码如下: ...
分类:
编程语言 时间:
2018-09-29 10:20:36
阅读次数:
290
一、概述 SGI STL有两级空间配置器:标准空间配置器std::allocator和特殊空间配置器std::alloc。 二、标准空间配置器std::allocator 之所以称之为"标准"是因为它直接使用了::operator new和::operator delete来进行内存分配,在效率上表 ...
分类:
其他好文 时间:
2018-09-26 17:10:36
阅读次数:
195
模板方法模式 在GOF的《设计模式:可复用面向对象软件的基础》一书中对模板方法模式是这样说的:定义一个操作中的算法骨架,而将一些步骤延迟到子类中。TemplateMethod使得子类可以不改变一个算法的接口即可重定义改算法的某些特定步骤。 我结合我在实际开发项目中的一个例子来说说这个模板方法模式吧。 ...
分类:
编程语言 时间:
2018-09-05 19:48:18
阅读次数:
163
```
char *UniCodeToUTF8(CString strUniCode)
{ LPWSTR pWstr = new wchar_t[strUniCode.GetLength() + 1]; wcscpy(pWstr, T2W((LPTSTR)strUniCode.GetString()... ...
分类:
其他好文 时间:
2018-07-22 15:17:50
阅读次数:
151
String.prototype.charCodeAt String.fromCharCode() test: ...
分类:
编程语言 时间:
2018-07-22 11:28:37
阅读次数:
167
编程中需要将_variant_t转换为char*,常用的方法是:(const char*)_bstr_t(c_variant_t); 使用_bstr_t的构造函数: _bstr_t(const _variant_t& var) ; C++ Code 123456789101112131415 // ...
分类:
其他好文 时间:
2018-07-20 16:48:08
阅读次数:
1121
#include <iostream> #include <string> #include <locale> #include <codecvt> #include <fstream> int main(int argc, char *argv[]) { std::wstring str = L" ...
分类:
编程语言 时间:
2018-07-20 13:58:28
阅读次数:
289
[题目链接] http://poj.org/problem?id=3171 [算法] 线段树 + dp [代码] ...
分类:
其他好文 时间:
2018-07-19 17:29:44
阅读次数:
140