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) 编辑

导航