samedi 3 octobre 2020

How do I find a string at a given index in C++? [closed]

I'm trying to write a function that would return a string type if I pass an index number as a parameter. I know that the function declaration is this std::string getString(size_t index), but I'm not sure if there are built-in functions that I can use within this function just like the find function in JavaScript. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire