I want to make a program that reads a map from a txt file and stores it in a two dimensional array of chars. The map is made of " * " and the size of it is 20x25. So this is what i came up with for which is important to mention that it works fine on Dev C++ but not on netbeans 7.
I feel that something is wrong with the pointers because if i use strings instead of chars the map is printed fine on netbeans but i can't store it in the array.
I apologize i didn't elaborate enough. I want to have instant access on any part of the array to insert new characters and strings don't work for me. I found a solution and i don't know if it's the best one but it seems to work fine. Thanks for pointing out the mistake on line 23.