2015年11月13日

oracle sql与调优

摘要: sql复习sql调优 阅读全文

posted @ 2015-11-13 18:32 __hello world 阅读(160) 评论(0) 推荐(0) 编辑

linux 常用命令记录 持续更新

摘要: linux 常用命令 阅读全文

posted @ 2015-11-13 15:36 __hello world 阅读(115) 评论(0) 推荐(0) 编辑

2014年10月12日

函数重载中形参的const

摘要: ##为什么f(int)和f(const int)无法构成重载? 1. 用const 修饰传值调用的形参,即实参不被修改。然而由于是传递的是实参副本,这个约定是隐式的!在函数里,const 有这样的意义:参数不能被改变,所以它其实是**函数创建者的工具**,而不是**函数调用者**的工具,而函数重... 阅读全文

posted @ 2014-10-12 09:58 __hello world 阅读(145) 评论(0) 推荐(0) 编辑

2014年10月9日

mem_fun_ref和mem_fun的用法

摘要: ``` class ClxECS{public: int DoSomething() { // 这里以输出一句话来代替具体的操作 cout vECS; 要对其中的每一个对象进行操作,只需要以下一行代码: for_each(vECS.begin()... 阅读全文

posted @ 2014-10-09 09:44 __hello world 阅读(187) 评论(0) 推荐(0) 编辑

c++风格的格式化输出

摘要: ``` #include #include int main(int argc, const char *argv[]){ double f; std::cin >> f; std::cout << "c = " << std::setiosflags(std::ios::fi... 阅读全文

posted @ 2014-10-09 08:56 __hello world 阅读(143) 评论(0) 推荐(0) 编辑

2014年9月29日

count_if函数里面的第三个参数的书写方式<<0926

摘要: ``` #include #include #include #include using namespace std;class Cmp{ public: Cmp(int i) :date_(i) { } boo... 阅读全文

posted @ 2014-09-29 01:17 __hello world 阅读(507) 评论(0) 推荐(0) 编辑

操作符重载(++,+,输入输出,强制类型转换)

摘要: ``` //Interge.h#include using namespace std;class Interge{ friend ostream & operator> (istream &, Interge &); public: Interge (); ... 阅读全文

posted @ 2014-09-29 00:19 __hello world 阅读(94) 评论(0) 推荐(0) 编辑

2014年9月28日

构造队列和三法则的编写<<0925

摘要: ``` #include #include #include #include using namespace std;class Node{ public: Node() :date_(0),next_(0) {} typed... 阅读全文

posted @ 2014-09-28 21:32 __hello world 阅读(139) 评论(0) 推荐(0) 编辑

2014年9月27日

自建一个String类实现深拷贝<<0925

摘要: ``` #include #include #include using namespace std;//在class里面存在指针的时候,要使用深拷贝,此时注意三法则原则class String{ public: String(); String(const ch... 阅读全文

posted @ 2014-09-27 11:22 __hello world 阅读(173) 评论(0) 推荐(0) 编辑

命名空间 algorithm头文件 reverse迭代器的erase<<0925

摘要: #0925 词频统计程序的一些总结###命令空间1. 将命名空间里面的函数声明和定义分开,头文件里面只需要包含声明就好了,另外写一个.cc文件,书写函数的定义 //fun.h #ifndef TEST_H_ #define TEST_H_ namespace HW { void fun(... 阅读全文

posted @ 2014-09-27 00:12 __hello world 阅读(449) 评论(0) 推荐(0) 编辑

导航