Reading char and converting it into different types

Hi folks,

I am starting in C++ and I have a the following problem:

cout<<"enter 123HDog and cat W346 edf gefh are good"<<endl

1*Save 123 into x
2*Save Dog and cat into str
3*Save 346 into y
4*Save are good into line

My program read 123 and converted to integer, however it is unable to keep reading and assigning the remaining characters to the specific containers.

I tried functions, classes. I am totally lost and I need help with the logic please.

Thank you.[/b]
Topic archived. No new replies allowed.