Problem statement:
You are given a group of N letters, and a 2D array of X, Y dimensions. You have to complete the 2D array with the pattern that derives from the character group. (I don't know if I explained the problem adequately but you'll understand from the input/output example.)
Input:
3 3 4
Ε Α Β
Output:
ΕΑΒΕ
ΑΒΕΑ
ΒΕΑΒ
I wrote the following code, but I don't understand where I made a mistake.
You can't do this in c++. When you create an array you have to give it a fixed value. Such as char chars[10]; If you want to do what you're doing. You will have to allocate memory on the heap.