Good morning. My problem is this: I want to implement a program in c ++ that when entering a word, that is, a string, tell me if it is infinitive or not. The program has to be repeated as many times as the user wants (that is, with a while). When the word is infinitive, I mean that the string ends in "ar", "er", "go" (laugh, sing, etc).
I have tried to see if some of these functions on this page could help me: link . But in reality I do not see any usefulness so that I can solve my problem or I do not know how to implement them.
I have doubts in how to do the function that seeks or verifies in a word its endings, that is, if it verifies if it is infinitive or not (if it ends in "-ar", "- er", "- go") . I would greatly appreciate your help and your answers