Question: C++ How to return a vector of pointers #include #include #include using namespace std; std::vector *readFrom(std::string filename){ vector shapes; shapesFile.close(); return shapes; } I need
C++ How to return a vector of pointers #include
std::vector
shapesFile.close(); return shapes;
}
I need to return a pointer to a vector of Shapes. The error I get is:
error: cannot convert std::vector
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
