【发布时间】:2017-11-14 20:13:13
【问题描述】:
代码中有什么问题? 我有:
“错误:'j'之前的预期主表达式”
#include <vector>
using namespace std;
void foo(vector<int>& v){
}
int main()
{
foo( vector<int> j);
return 0;
}
【问题讨论】:
-
@StoryTeller 这样的 cmets 最好附上 SO 的 list of good C++ books 的链接。
标签: c++ function vector reference parameter-passing