input string and integer on the same line

Hello, I trying to write program, but I have a problem. At first I have to input
how many people information I want to write and after I have to input information of people full names and birth date on same line. It has to be something like this:
3
John B. Snow 2001 09 18
Harry Anderson 1998 05 14
George Bernard Shaw 1989 12 20

The problem is that some people have two names, some have one.How I have to write this part of program(with arrays), because I need every people information later on.
Last edited on
use getline, then iterate it in reverse. whatever is left is the name.
Topic archived. No new replies allowed.