When i read in from an input file how do i know if a word in that file ends with an s.
And what if I have to change the word shoe to sock everytime the word shoe is in the file. How would i do this
thanks
When i read in from an input file how do i know if a word in that file ends with an s.
And what if I have to change the word shoe to sock everytime the word shoe is in the file. How would i do this
thanks
What do you have so far?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
I haven't started the program yet I am trying to decide what all i need to do before I begin.
Here's a start:Hope this helps.Code:using namespace std; ifstream fin("in.dat"); string input; while (getline(fin, input)) { if (input == "shoe") // Do something } fin.close();