模板套模板~~
#include?
<
iostream
>
#include?
<
map
>
#include?
<
string
>
using
?
namespace
?std;
int
?main()
{
????map
<
string
,?
int
>
?map1;
????map
<
string
,?map
<
string
,?
int
>
?
>
?map2;
????map1[
"
test
"
]?
=
?
2
;
????map2[
"
test1
"
]?
=
?map1;
????cout?
<<
?map2[
"
test1
"
][
"
test
"
]?
<<
?endl;
????
return
?
0
;
}
posted on 2006-03-22 00:06 那誰 閱讀(1695) 評論(5) 編輯 收藏 引用 所屬分類: C\C++

