Return array in C++

前端 未结 6 2053
情话喂你
情话喂你 2020-12-12 04:51

I am a total C++ noob, and I am having some trouble returning an array from my methods. I have a header file with the following method declaration:

virtual d         


        
6条回答
  •  暖寄归人
    2020-12-12 05:24

    The C++ syntax for arrays is: std::vector instead of double[]. It also requires you to put #include near the top of your source file. Other than that they work very similar to C-arrays.

提交回复
热议问题