sudotoxic
21.06.2019 •
Computers and Technology
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; }
Solved
Show answers
More tips
- L Leisure and Entertainment Scrapbooking: What is it and Why is it Becoming More Popular?...
- H Horoscopes, Magic, Divination How to Cast a Love Spell on a Guy? Guide for Guys...
- F Family and Home How to Sew Curtain Tapes: Best Tips from Professionals...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
- F Food and Cooking The Disease That Haunted Abraham Lincoln...
- C Computers and Internet How to Get Rid of Windows Genuine Check?...
- H Health and Medicine How to perform artificial respiration?...
- S Style and Beauty Tricks and Tips: How to Get Rid of Freckles...
- C Computers and Internet How Do You Refill Cartridges?...
Answers on questions: Computers and Technology
- S Social Studies How are ww1 and ww2 alike and how are they different ( i need 3 examples)...
- M Mathematics Are the ratios proportional? 10/12 and 20/32...
- M Mathematics Find the measure of each exterior angle of a regular dodecgon 12 sides....
- E English Does “never ending phone calls with my best friend” is right grammar?...
- E English 10 free points! Write anything and it s yours!...
Ответ:
If you're coding with C++ then the solution would be:
if (userInput.find("darn") != -1) {
cout << "Censored" << endl;
}
else{
cout << userInput << endl;
}
Keep in mind that this will reject any input with the word "darn" in the sentence. This will not filter the word darn if the capitalization is in different formats like "Darn, dArn, daRn, darN, DARN".
Ответ:
In the play Antigone, Teiresias is a blind mind who nevertheless has great insight towards the future. He is a prophet, and he gives us several signs of his power even before he tells us his prophecy.
One of the reasons why we know that he is indeed a prophet is from the interpretations that he makes of signs. The signs tell him that the gods do not approve of Creon's behaviour. He tells us that he has seen the "carrion meat" of birds and dogs, "torn from the flesh of Oedipus' poor son." The gods do not seem to take the offerings from the Thebans. Moreover, the bird's throats are full with the blood of Polyneices.
All of these signs show that the world is not operating as it should be. We learn that the gods do no approve of Creon's decision to not bury Polyneices. We also learn that the gods believe that Creon has violated the law of the living and the dead. Because of this, Teiresias states, the gods decide that someone from Creon's family will be taken too.