码迷,mamicode.com
首页 >  
搜索关键字:Once    ( 2791个结果
Copy Control and Resource Management
Ordinarily classes that manage resources that do not reside in the class must define the copy-control members. Once a class needs a destructor, it alm...
分类:其他好文   时间:2015-01-20 20:18:27    阅读次数:214
如何隐藏C++头文件中的实现
嗯,先从一个问题说起,游戏引擎中的贴图管理模块该如何实现?我们可以分别想象一下这个模块在C和C++中的大体实现。注意,为了简化,下面的代码仅仅是示意一下而已。一. C 中的实现 C 通过头文件来暴露贴图模块的操作函数,texture.h 头文件代码如下:#pragma once//接口1:初始化贴....
分类:编程语言   时间:2015-01-18 20:58:48    阅读次数:318
Remove Duplicates from Sorted List
题目 : Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 我的解法: (1)算法思想:...
分类:其他好文   时间:2015-01-17 18:03:36    阅读次数:190
处理关键字(织梦关键词提取功能)
I‘m sorry 提取的是织梦关键词加载功能附件下载:http://files.cnblogs.com/subtract/关键词提取.zip使用步骤:1.加载 splitword.class.php 文件并提取1 require_once './../splitword.class.php'; ....
分类:其他好文   时间:2015-01-17 17:45:56    阅读次数:186
Combination Sum II -- leetcode
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combina...
分类:其他好文   时间:2015-01-16 16:47:18    阅读次数:152
开源一个C++实现的简单HTTP协议处理库
HTTP协议库有两个版本,一个是基于WININET,一个则是使用socket实现的。 可以支持POST 、GET请求,断点下载、重定向下载、下载进度回调,不支持HTTPS。 接口头文件声明如下: #pragma once #include using std::string; using std::wstring; #include #include enum REQUEST_T...
分类:编程语言   时间:2015-01-15 18:15:36    阅读次数:463
JDK发展主要历程
1.1995年5月23日,OAK改名为Java,并且在sunWorld大会上面发布了Java 1.0,。Java第一次提出了“write once,run Anywhere”的口号。2.1996年1月23日,JDK 1.0发布,Java有了第一个正式版本的运行环境。JDK1.0 提供了纯解释执行的J...
分类:其他好文   时间:2015-01-15 00:10:06    阅读次数:308
boost.log在项目中应用
#pragma once#include #include using std::string;#define LOG_DEBUG\ BOOST_LOG_SEV((MyLog::s_slg),(boost::log::trivial::debug))#define LOG_INFO\ B...
分类:其他好文   时间:2015-01-14 00:39:58    阅读次数:219
一个操作cvs格式的c++类
经常需要使用excel,或者把有的数据用excel打开,程序可以生成cvs格式的文件,这样就可以excel打开并处理了,于是找了一个处理cvs的c++类跟大家分享 代码出处找不到了:   代码如下:   StringParser.h #pragma once #include #include #include #include #include #include #inc...
分类:编程语言   时间:2015-01-13 21:37:51    阅读次数:327
require()和include()代码重用
第五章 require()函数和include()函数几乎是相同的,二者唯一的区别在于函数失败后,require()函数将给出一个致命的错误,而include()只是给出一个警告。require_once()和include_once()所包含的文件只能引用一次。
分类:其他好文   时间:2015-01-13 21:27:06    阅读次数:136
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!