was just wondering if anyone can help me with some homework. I have been trying to figure this out for a couple hours now. I am sure it is probably simple but I can't get it to run. What I have to do is take user input that contains the word HELL, and censor it to HECK. It needs to know that it is the word HELL and not something that contains it like HELLO. Also, we are not allowed to use the header <string>. This is just a small part of the whole homework so it needs to be a function. Thanks for Helping!!
Jump to Post
Look at each character. When you see an H remember it. If the next letter is E, remember it, else forget everything. Continue until you have all the letters. Now check if there is a letter before or after these letters. If so, ignore it all, otherwise, change the characters
All 5 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.