Hi there, as below code, I am having difficulty with display function.
As you can see that, I have use while loop to scanText() then included processText() functions to filter unnecessary texts within the loop.
Unfortunately, I tried to call displayText() function in main, it shows the last word of texts regardless there are many texts.
Of course I could include displayText() within while loop, but this action will defeat the purpose to call displayText(), since scanText() can be used to show the output as well.
On line 13 you store each processed word in the same variable, thus overriding the previous one.
Could you explain in plain English what you actually want to do.