Wouldn’t you be the one responsible since your the one taking the image?
I'd say in the
United States.
This United States penological practice was inaugurated in
1913 by state senator Henry Huber. Typically, under the work release program, a
prisoner who is sufficiently trusted is employed
outside the jail during working hours and returns to confinement at the end of
the shift.
Answer:
#include <string>
#include <iostream>
using namespace std;
int main() {
string userInput;
getline(cin, userInput);
// Here, an integer variable is declared to find that the user entered string consist of word darn or not
int isPresent = userInput.find("darn");
if (isPresent > 0){
cout << "Censored" << endl;
// Solution starts here
else
{
cout << userInput << endl;
}
// End of solution
return 0;
}
// End of Program
The proposed solution added an else statement to the code
This will enable the program to print the userInput if userInput doesn't contain the word darn