Return array in C++

前端 未结 6 2051
情话喂你
情话喂你 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:15

    C++ doesn't play nice with non-local arrays, more likely you should be using an actual container like std::array or std::vector. I don't think it's possible to return an array from a function.

提交回复
热议问题