随笔分类 -  STL

摘要:今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(158) 评论(0) 推荐(0)
摘要:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occ... 阅读全文
posted @ 2017-11-17 22:28 wangyaning 阅读(125) 评论(0) 推荐(0)
摘要:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occ... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(130) 评论(0) 推荐(0)
摘要:今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha... 阅读全文
posted @ 2017-11-17 22:27 wangyaning 阅读(120) 评论(0) 推荐(0)
摘要:简单说一下popen()函数函数定义#include FILE * popen(const char *command , const char *type );int pclose(FILE *stream);函数说明 popen()函数通过创建一个管道,调用fork()产生一个子进程,执行一个... 阅读全文
posted @ 2014-12-31 23:07 wangyaning 阅读(1304) 评论(0) 推荐(0)
摘要:#include "cv.h"#include #include #include #include #include #include #pragma comment(lib,"opencv_core2410d.lib") #pragma comment(lib,"opencv_highg... 阅读全文
posted @ 2014-12-11 11:01 wangyaning 阅读(6167) 评论(0) 推荐(0)
摘要:// 为包含指针的关联容器指定比较类型.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;struct StringPtrLess: public binary_fun... 阅读全文
posted @ 2014-08-14 23:25 wangyaning 阅读(156) 评论(0) 推荐(0)
摘要:#include #include using namespace std;struct Student{ char *name; int year; char *addr;};void find_test(){ multiset ms; ms.insert(10); ms.insert(11); ... 阅读全文
posted @ 2014-03-06 20:13 wangyaning 阅读(309) 评论(0) 推荐(0)
摘要:#include #include using namespace std;//list 链表的打印void print(list& l){ list::iterator i,iend; iend = l.end(); for (i=l.begin();i!=iend;i++) { cout l... 阅读全文
posted @ 2014-02-28 22:02 wangyaning 阅读(4343) 评论(0) 推荐(0)
摘要:#include #include using namespace std;void print(vector& v)//打印函数{ cout& v)//反向遍历vector元素{ vector::reverse_iterator ri , riend; riend = v.rend(); for ... 阅读全文
posted @ 2014-02-26 21:50 wangyaning 阅读(328) 评论(0) 推荐(0)