Hi. English is not my native language so I'm sorry if im not correct. When i try to assign 48(ASCII=0)to plansza and run the programme it crushes.... Dont know why.... And when i try to assign "x" it says: invalid conversion from 'const char*' to 'char' [-fpermissive]|
What's wrong ? :/
EDIT: Okay i found out it has to be 'x' to make it works properly, but still don't know why the programme crashes.
You have two choices.
1) Line 5: Define n as a const and give it a value if you know the value at compile time.
2) Move line 6 to after line 13. Not global, but will use the entered value as the dimension.
Better style to not make it global.