How to take input of an array in 1 line in C++?

string a[100];
gets(a);

2 Likes