I have to write a program that tests whether or not an array of chars is a palindrome (where a word is read the same backwards as it is forwards - Radar, Madam, etc), but ignoring spaces and chars.
I'm pretty sure my code is right, but am having trouble with my copied array.
You can not create a variable on stack with unkown size in compiler time, of course it includes arrays too.
You can use constants for array size or use dynamic memory(heap).
About dynamic memory please google malloc/free, new/delete
I've been trying to work out what you mean for the last few hours, Denis, but no result. Anyways, here's the updated code. I caught one or two other errors. I still could use some help.
Someone told me something about 'default'. I'm a little confused. Maybe if someone could clear that up?