+ 2
How to remove repeating words?
I want to remove repeating words using pointers. Code works perfect when word repeats twice, but when it repeats more code will output repeating words. https://code.sololearn.com/cjQ00Z6GxQ8C/?ref=app
1 Resposta
+ 4
my algorithm :
1 - create string variable (temp), size equal text
2 - tokenize text
3 - use strstr to test if word is not in temp
4 - if true strcat
finally - copy temp to text (if you want)