vector<int>&nums vector<int>nums
请问上述两个语句有什么区别?
一个是vector的引用类型,可以当作指针来理解,不能直接使用,必须先赋值一个vector<int>对象 一个是vector<int>类型变量。