摘要:
最短路map如果要使用char*作为key,不能简单的直接使用,可以用string作为map的key,使用的时候将char*转换为string。转换的方法是使用string的assign函数。string.assign(char*);#include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>#include <algorithm>#include <map>using namespace std;#define maxn 205#defi 阅读全文
posted @ 2013-06-11 22:34
undefined2024
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号