码迷,mamicode.com
首页 >  
搜索关键字:Operator    ( 3564个结果
gdb调试
gdb FILE 调试程序gdb run 运行程序gdb list 查看代码break num 设置断点breac function info b 查看断点 delete b 删除断点break operator(函数名) 条件断点step 单步 next 往下执行 display varible ...
分类:数据库   时间:2014-05-27 03:07:35    阅读次数:309
Boost thread 教程
#include #include #include class SpecificWork {private: int p_;public: SpecificWork(int value) : p_(value) { } void operator()() { printf("Value is %....
分类:其他好文   时间:2014-05-27 03:06:45    阅读次数:251
SQL书写技巧
SQL书写技巧:1、针对分区表,如果可以使用分区条件的,一定要加分区条件。分区条件的使用,可以减少不必要的数据访问,加快查询数据,如TB_CSV_ACCEPT_FLOW_OPERATOR表,以accept_month字段分区,在sql中如加上accept_month=’value’,则可以在指定的分...
分类:数据库   时间:2014-05-19 21:10:45    阅读次数:399
第十一章 运算符重载
第十一章 运算符重载1. 运算符重载2. 在成员函数中实现自加3. 重载前置自加运算符返回类型 operator@(参数表){}@代表要重载的运算符对象运算符重载不同于变量运算符重载void operator++(){++n;}++i;//等价于i.operator++();若i是变量 则++i就是...
分类:其他好文   时间:2014-05-19 17:00:08    阅读次数:304
stl sort分析
最近写代码,无意中发现了一个坑,关于自定义比较函数的stl sort函数的坑,于是记录下来。先贴代码: 1 #include 2 #include 3 #include 4 5 struct finder 6 { 7 bool operator()(int first, in...
分类:其他好文   时间:2014-05-19 14:47:48    阅读次数:319
C++ 类型转换的特殊用法
C++ 类型转换的特殊用法下面是ossimLsrRay.h中的一个例子/*!* CASTING OPERATOR: ossimEcefRay()* Looks like a constructor for an ossimEcefRay but is an operation on this* ob...
分类:编程语言   时间:2014-05-19 08:17:12    阅读次数:398
关于==操作符重载
今天看资料时看到这样一段代码,记录下 public static bool operator ==(EntityBase entity1, EntityBase entity2) { if ((object)entity1 == null && (o...
分类:其他好文   时间:2014-05-18 18:51:59    阅读次数:209
LeetCode: Divide Two Integers [028]
【题目】 Divide two integers without using multiplication, division and mod operator. 【题意】 计算两个数的商,不能使用乘、除、取余操作 【思路】 用加法,确定多少除数相加其和恰好<=被除数 为了提高算法效率,利用贪心思想,采用滚雪球式的翻倍叠加策略,使和快速逼近被除数 集中特殊情况需要注意: 1. 结果是负数 ...
分类:其他好文   时间:2014-05-18 10:42:00    阅读次数:259
《c++编程剖析-问题,方案和设计准则》笔记
1vector的使用我们只可以使用operator[]和at()去改动那些已经存在于容器中的东西.而用reserve()函数不会使得容器中充满函数,需要用resize()函数代替当不对容器内的元素做任何改动时,记得使用const_iterator2关于标准成员函数C++标准库的实现中的成员函数签名并不要求与标准中说..
分类:编程语言   时间:2014-05-16 02:35:30    阅读次数:360
模板类Queue的实现
1 #include 2 #include 3 using namespace std; 4 5 template class Queue; 6 template ostream & operator &); 7 8 template class QueueItem...
分类:其他好文   时间:2014-05-15 02:01:47    阅读次数:406
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!