Write your question here. : hello everybody...just finished this exercise...but for some reason something is not working... i should write a program to eliminate a given word in a given sentence...compiling fine..but nothing is working...help..thanks!
cin does not keep track of spaces. Use getline instead. Also, use strings, not character arrays (you can treat strings like character arrays by parsing through using an iterator, but there's not much need to since it includes a plethora of functions that make that usually unnecessary).