Recently read a book on C++ and it primarily covered classes, and I’m looking at some sample code and am confused by this statement:
struct SomeName* SomeOtherName();
I know that structs resemble classes in general architecture, so when I see the above, is it in fact referring to a class-like struct or is this a function declaration that is going to return a struct? (Rather, return a pointer to a struct)
Since structs can be like classes or can be simple data structures, seems that the use of the word “structs” in C++ can often lead to a lot of confusion.
Yep, this one.