摘要:
function FGUtilStringSplit(str,split_char) ------------------------------------------------------- -- 参数:待分割的字符串,分割字符 -- 返回:子串表.(含有空串) local sub_str_tab = {}; while (true) do local pos = string.find(str, split_char); if (not pos) then sub_str_tab[#sub_str_tab + 1] = str; break; end local sub... 阅读全文
posted @ 2013-01-17 21:20
byfei
阅读(392)
评论(0)
推荐(0)
摘要:
#include<map>#include<iostream>#include <string>using namespace std;int main(){ map<int,map<int,string> >multiMap; //对于这样的map嵌套定义, map<int, string> temp; //定义一个map<int, string>变量,对其定义后在插入multiMap temp[90] = "hi"; temp[100] = "maxi"; multi 阅读全文
posted @ 2013-01-17 10:40
byfei
阅读(605)
评论(0)
推荐(0)

浙公网安备 33010602011771号