I'm some difficulty getting my program to read in multiple data types off one like of data being input.
The way it works is someone enters a name, age, and date of birth, and I then have to process this so that it'll read in these different data types off one line.
I've tried using cout to prompt for the data and then reading the data type in with cin but it keeps giving me an error saying "no operator defined which takes a right-hand operand of type 'const char' (or there is no acceptable conversion)".
I can't seem to lose this error no matter what I try.
The other thing is, is it possible, using cin, to have spaces defined as part of the entry from cout i.e. when you type name you hit space and that cin will acknowledge the space being there?
I'm not sure how well I've explained myself so please let me know.