摘要: 字符串二分查找#include"stdio.h"#include"string.h"#include"iostream"#include"stdlib.h"using namespace std;char a[1001][22];char ch[22];int cmp(const void *a,c... 阅读全文
posted @ 2013-11-17 12:51 一样菜 阅读(993) 评论(0) 推荐(0) 编辑
摘要: map容器一般用于对字符串进行编号,主要用于建图方面,例如把城市名按数字进行编号#include"stdio.h"#include"string.h"#include"iostream"#include"map"using namespace std;mapmp;int main(){ in... 阅读全文
posted @ 2013-11-17 12:32 一样菜 阅读(118) 评论(0) 推荐(0) 编辑