>char capital = name[0] - 32; //-32 gives you the capital letter of each char(ascii code)
The world is not in ASCII. If you want something portable outside of the character set and locale that you're used to, use toupper.