![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.01.2020 23:31 BUBBA5990
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is:
censored
ex: if userinput is "dang, that was scary! ", then output is:
dang, that was scary!
note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.
#include
#include
using namespace std;
int main() {
string userinput;
getline(cin, userinput);
int ispresent = userinput. find("darn");
if (ispresent > 0){
cout < < "censored" < < endl; /* your solution goes here */
return 0;
}
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
![question](/tpl/images/cats/informatica.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 20:10
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
You know the right answer?
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex:...
Questions
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/health.png)
Health, 15.01.2021 20:30
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/istoriya.png)
History, 15.01.2021 20:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 15.01.2021 20:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.01.2021 20:30
![question](/tpl/images/cats/istoriya.png)
History, 15.01.2021 20:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 15.01.2021 20:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/istoriya.png)
History, 15.01.2021 20:30
![question](/tpl/images/cats/himiya.png)
Chemistry, 15.01.2021 20:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/biologiya.png)