Answer the question
In order to leave comments, you need to log in
How to select any one from QStringList array that satisfies conditions?
First I add the words to the array: mtowns << line;
Then I need to find a word that starts with a certain letter.
I do it through a loop: for(i=0;i<count;i++)
And if it satisfies the conditions, then I show the result.
How can I make a random word output to this letter, and not just the first one that came up?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question