First of all, I'm sorry if the title isn't the best one, I couldn't think of a better one without just explaining the whole problem there.
I'm a very, very erm.. beginning beginner. I'm currently trying to understand how use dynamic memory. I understand the very basics of it, but now I'm stuck. I have a little test program but I can't seem to figure out what I'm doing wrong here. Everytime I give it a valid input it returns "=". I'm not sure if it's because I'm doing something wrong with the dynamic memory stuff, or because I'm making an elemental mistake with the implicit string[index] -> char conversion. Either way, I hope someone can point out what I'm doing wrong!