Good evening! In one of the parameters of my constructor, I'm passing the following char *
+---+\n|A |\n| H |\n| A|\n+---+
Next, the constructor calls SetText (), passing this char *, and within SetText (), I would have to count the height and width of this "image", which would be 5x5. I assume it's using \ n .
I've been looking for various functions or algorithms to split \ n, but not one successfully.
In PHP, there is the split () that distributes the string in the desired char and separates everything else into arrays (which would already tell the height and width), there is something similar / equal in C ++?
Thank you.