I'm beginning a problem in which I need to take each individual letter in a single word and output one word that is associated to each letter. For example, if I put in the word "bad" my program would output something like "barnus attack day". Now this is a homework problem and I already google searched it and found an answer, but I am not a cheater and I want my own solution.
So I have been browsing high and low to find some kind of creative solution that does not include an array and I think I've decided to try to use a stringstream. My question is:
If I want to have a user input one single word
Can I then make a stringstream that will operate on each letter in the word
And output whatever I'd like it to output?