sir,
what is this ???
pair string ,string strpair[100];
for(int i=0;i<n;i++)
{
strpair[i].first=key;
strpair[i].first=extractstringatkey(a[i],a[i]+n,key);
}
sir,
what is this ???
pair string ,string strpair[100];
for(int i=0;i<n;i++)
{
strpair[i].first=key;
strpair[i].first=extractstringatkey(a[i],a[i]+n,key);
}
please explain !!!
@gargshivam2001 we have take a array of pairs in which each pair is of the form
(string , string) = (x , y) . To access x we write like this strpair[i].first=key;
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.