passing vector to function c++

后端 未结 6 1024
借酒劲吻你
借酒劲吻你 2020-12-30 15:32

I have a main.cpp test.h and test.cpp> I am trying to pass my vector through so i can use it in test.cpp but i keep getting errors.

   //file: main.cpp
    i         


        
6条回答
  •  庸人自扰
    2020-12-30 15:52

    You should fix

    test.h:5: error: âstringâ does not name a type
    

    first, probably by using namespace std; and #include

提交回复
热议问题