@Kyon
You can't compare char arrays like that. It will compare it's addresses, not contents.
@xcynic
Either use std::string, which has overloaded comparison operators. Or compare ped and ped1 with strcmp.
There's no need to fear, the only concept you need to get why your comparison doesn't work is called: Pointers. And the only concept you need to understand to get why the string method works fine is.. frankly, String itself. Use the tutorial found on this website and combine it with the C++ Console lessons from http://www.xoax.net/ and you'll be fine.