map <string,int> nmap;. 直接在初始化vector時傳入map的疊代器. vector<PAIR> vec(nmap.begin(),nmap.end());. //map按值排序 #include <iostream> ...
確定! 回上一頁