
Patrick B. answered 04/06/20
Math and computer tutor/teacher
using namespace std;
#include <iostream>
#include <string.h>
void MakeSentenceExcited ( char * sentenceText)
{
int n = strlen(sentenceText);
char * chPtr;
chPtr = sentenceText;
for (int iLoop=0; iLoop<n; iLoop++)
{
if (sentenceText[iLoop]=='.')
{
sentenceText[iLoop]='!';
}
}
}
int main()
{
char strBuff[1024];
strcpy(strBuff,"Hello. My name is Oscar. Pleased to meet you. How are you? the end...");
MakeSentenceExcited(strBuff);
cout <<strBuff << endl;
}