Ask Question

Rint "Censored" if userInput contains the word "darn", else print userInput. End with newline.

#include

#include

using namespace std;

int main () {

string userInput;

userInput = "That darn cat.";

/ * Your solution goes here * /

return 0;

}

+3
Answers (1)
  1. 1 October, 01:38
    0
    This is the closest thing I could come up with since I don't really know c++. (just so it's easier maybe put the name of the programming language)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Rint "Censored" if userInput contains the word "darn", else print userInput. End with newline. #include #include using namespace std; int ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers