Thanks for replying, the text says:

error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'const char []' (or there is no acceptable conversion)

I tried making a temporary char array that stored 25 chars and then input a string instead of the "name" and then set name = temp;

this compiles but I don't get any output so I guess it isn't possible to go that way.

The error seems to be just on this line.. just getting the cin to actually get some values from the input doesn't seem to work.