发布时间:2016-03-01 16:42:03
template void RandomSelect(std::vector& vec){ std::vector::const_iterator const_it = vec.begin(); //error: expected `;' before ‘const_it’ ...}原因:对于语句std::vector::const_iterator const_it = vec.begin()来说,T是个未声明变量,因此编译器.........【阅读全文】