I'm in a beginners class in C++ and so far we've only gotten through 5 chapters in our book. We have homework every night and it's usually very easy, well this one is stumping me and I have no idea where to go with it.
I'm supposed to take a string (ex: Do geese see god?) and filter it into (Dogeeseseegod). So far I haven't been able to get the second part, but I know I'm close to a solution.
I've fixed the out of bounds and just made it "for (int i = 0; i < x; i++).
If I'm supposed to change it for lines 10, 12 what should the if statement look like? Or should I have one there at all?