This question is probably going to be a noob question because I have just started out with C++. But I cannot find out what I am doing wrong. The project that I am working on is an assignment for school. In this assignment, we are only allowed to use raw pointers, so we find out how raw pointers work.
Now those raw pointers gave me some trouble. Those pointers gave me the error: 'no suitable conversion function from "Room" to "Room *" exists'.
To try and explain how I caused this error I will try to give a stripped-down version of the code that I have written.
_rooms[y + 1][x] is a
Room instance, not a pointer to a room. To get a pointer to it you need to use the address-of operator
_rooms[y][x].South = &_rooms[y+1][x];
On an unrelated note: You do remember to populate the vectors in your