+ 1
Search a word in a string
I want to make a Programm to analize big Text,so i want to know If there is a function to search a word in a string
4 odpowiedzi
+ 2
Look this code
https://code.sololearn.com/c03Ie4f5xZHd/?ref=app
+ 2
https://www.sololearn.com/discuss/1105478/?ref=app
+ 1
Salam
You can make a simple loop that compare evry word in a string with the word to search for, using std::string::compare().
0
why not check C++ documentation online that will definetely help you understand string manipulation better and all that exit