173k views
4 votes
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;
}

1 Answer

3 votes
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)
Rint "Censored" if userInput contains the word "darn", else print-example-1
User RoachLord
by
7.6k points