C++: Syntax error C2061: Unexpected identifier

后端 未结 5 1507
梦如初夏
梦如初夏 2021-01-06 12:33

What\'s wrong with this line of code?

bar foo(vector ftw);

It produces

error C2061: syntax error: identifier \'vector\'
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-06 13:11

    try std::vector instead. Also, make sure you

    #include 
    

提交回复
热议问题