fill_n(vec.begin(),vec.size(),0); 转载于:https://www.cnblogs.com/chhyong88/archive/2011/12/06/2277667.html