mardi 3 mars 2015

C++ substring check

I'm given two strings s1, s2 and an integer i. I want to check if the substring of s1 starting at index s1 of the same length as s2 equals s2. I know this is trivial to implement with a little loop, but I would prefer to use a library method if it exists.


Aucun commentaire:

Enregistrer un commentaire