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