for some reson i get these errors for lines 9 and 10:
incompatible types in assignment of `char' to `char[2]'
What am I missing here? I'm using Dev C++ compiler version 4.9.9.2.
It's because you are trying to assign an array to a character. It's very clear - take a look at it. How can you assign an array of characters to one individual character? If you intend to assign an array to an element of another array it must be MD. (multidimensional)
EDIT: Check the articles for Disch's article on the dangers of MD arrays. It's very clear and it has some things you should be sure to keep in mind before getting bogged down in MD arrays.