how to take multiple string input without making a character array?
How to take multiple string input without making a character array?
N is number of strings to take input
Vec is string vector to hold strings
int n;
cin>>n;
vector vec[n];
for(int i=0;i<n;i++){
cin>>vec[i];
}
If your doubt is resolved please close it