//---------------------------------------------------// // Keith Katona Cs 30s December 12thth 2006 Ass3 Q3 // // This is a censorship and replace letter program // //You enter in the sentence and then enter whatletter// // that you want replaced with another letter number // // or symbol // // This program is copyrighted by me as of 2007 // //___________________________________________________// //header #include #include #include using namespace std; //prototypes void Print_String(char phrase[80]); void Enter_String(char phrase[80]); void Replace(char phrase[80], char badchar, char newchar); //main int main(void) { char phrase[80]; //the phrase first entered char badchar; //characters to be removed int phrasepos, badcharpos, count, howmany, offset; //keeps track of the string, times the user will type in a phrase,the string offset bool stillbad; //tells if bad word is still in phrase char character; //The character the user chooses char newchar; //The character that replaces badchar char again; //Do you want to run this program again //Ask user how many strings cout<<"How many strings?"<>howmany; cin.ignore(); for(count=1; count<=howmany; count++) {Enter_String(phrase); do {cout<<"What character do you want replaced?"<