(c++)
i have a string pointer, that i want to assign to a pointer to a class, how can I do it?
string pointer whut?
You can't assign a pointer to a type to a pointer of another type unless one is inherited from the other. Well, you can with a void pointer, but if you try to use it, you'll end up with undefined behavior.
Обсуждают сегодня