The start is easy, simply filling the array with the string -
1 2 3 4 5 6 7 8 9 10 11 12
|
std::string words = "DA PAE KTTTÄRE TRYR ";
char arr[5][4];
int stringCounter = 0;
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 4; j++)
{
arr[i][j] = words[stringCounter];
stringCounter++;
}
}
|
Now this is where you have to start thinking. Because you can't just display it like it is, it will print out
D A _ P
A E _ K
T T T _
...
... |
So what you want to do is develop some kind of pattern/algorithm, which displays them the way you want it to. Basically the algorithm is -
Display the first Letter, which is D, then 5 characters to the right, which is E, then 5 characters to the right, which is T, then 5 characters to the right, which is T.
Now start from second character, 5 characters to the right which is _ ... and so on, until it's displayed like you want it to.
Work hard on this, I'd like to see the progress you make =)