Please post what the problem is next time, e.g. compile error or wrong output or whatsoever...
1 2
|
#define false 0
#define true 1
| |
don't do that, true/false are already defined.
(i only mention errors my compiler gave me)
in line 12 and 14 you forgot to define the arguments you call the function with.
PrintMessage takes a bool argument, but you call it from PalindromeTest without any.
and PalindromeTest is supposed to return a bool, but it does not. (my compiler doesn't care about the missing return, i wonder why...)
change these things and the program should work.
for me it was not working with
strrev
, where is this function defined? so i had to write my own function, that replaced your strcpy, strrev and strcmp... thats why i said it "should" work with the changes, couldn't test it ;-)