dimanche 28 mars 2021

How to check every combination of a word in an if statement in c++? [duplicate]

For example:

std::string word;

std::cout << "Type the word "Play"\n";

std::cin >> word;

Here i need to check if the user typed the right word, in any of his forms (pLaY, PLaY, plaY..etc)

Aucun commentaire:

Enregistrer un commentaire