随笔分类 - STL
摘要:今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:今天看了一个华为西安研究院的一个女生代码大神的总结很有感悟,下面这句话送给大家:只有好的程序员才能写出人类可以理解的代码You are a professional robber planning to rob houses along a street. Each house ha...
阅读全文
摘要:简单说一下popen()函数函数定义#include FILE * popen(const char *command , const char *type );int pclose(FILE *stream);函数说明 popen()函数通过创建一个管道,调用fork()产生一个子进程,执行一个...
阅读全文
摘要:#include "cv.h"#include #include #include #include #include #include #pragma comment(lib,"opencv_core2410d.lib") #pragma comment(lib,"opencv_highg...
阅读全文
摘要:// 为包含指针的关联容器指定比较类型.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;struct StringPtrLess: public binary_fun...
阅读全文
摘要:#include #include using namespace std;struct Student{ char *name; int year; char *addr;};void find_test(){ multiset ms; ms.insert(10); ms.insert(11); ...
阅读全文
摘要:#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...
阅读全文
摘要:#include #include using namespace std;void print(vector& v)//打印函数{ cout& v)//反向遍历vector元素{ vector::reverse_iterator ri , riend; riend = v.rend(); for ...
阅读全文