Hello guys. I'm working my way through C++, and I'm trying out a very basic program where the console asks you to input a word (string), and then captures that input into a 3 element vector. After that, it is meant to output all three of those elements to the user. If any of the words that was captured are the designated "disliked word", then what should be output in that index's place is the word "BLEEP!".
However, the problem I'm running into is that the second major part of the below function called "createWordList", that is, the for-loop that is meant to output a list of the items from the vector, doesn't seem to call. I'm really not sure what I'm doing wrong here. Can someone please help me see where I messed up? Thanks for your help! :)
edit: Regarding my use of the algorithm header, I know that I'm not using anything from there at the moment, but I intend to use it for something else in this code once I get what I currently have working.
Oh wow. Thank you. I actually already knew that about For Loops. (I code in Javascript a lot) Not sure how I made that mistake. Must be some brain malfunction, indicating that I should take a break, lol.