Why cant i do like this
string s[10000];
getline(cin,s);
it is showing a error that getline() function has no match
while using just string s; goes fine. Why can’t i specify the size earlier
Why cant i do like this
string s[10000];
getline(cin,s);
it is showing a error that getline() function has no match
while using just string s; goes fine. Why can’t i specify the size earlier
Hello @SATVIK,
As you have created an array of string.
So, you have to take input for each index separately.
The following code will explain your mistake:
Hope, this will help.
Give a like if you are satisfied.
Ya, got it.
thanks.
And btw what’s this 20 character limit in reply.
no nothing just.
for replying we have write at least 20 character.
sometime its irritating.
don’t bother