I tried looking on the internet but I've not seen an answer.
So I have to cin a char with multiple words, like "Cars have four wheels." And I need to take every word and cout him. I learned at school that you can do this:
char a[100][20];
cin.getline(a, 100);
But it doesn't work. What's the proper way to cin a char with multiple words separate by a space;