mercredi 10 mars 2021

Can anyone explain std::string::npos?

Cannot understand how the following code works.

if (found != string::npos) { 
    cout << "first " << s2 
}

Is there any return value....Then What is it...I cannot figure out how does it works. Please anyone help me out with that.

Aucun commentaire:

Enregistrer un commentaire