Question: Complete the function to replace any period by an exclamation point. Ex: Hello. I ' m Miley. Nice to meet you. becomes: Hello! I '
Complete the function to replace any period by an exclamation point. Ex: "Hello. Im Miley. Nice to meet you." becomes:
"Hello! Im Miley! Nice to meet you!"
#include
#include
using namespace std;
void MakeSentenceExcitedstring& sentenceText
Type function here with explanation
int main
string testStr;
getlinecin testStr;
MakeSentenceExcitedtestStr;
cout testStr;
return ;
I cannot seem to get mine to work. this is what I have.
#include
#include
using namespace std;
void MakeSentenceExcitedstring &testStr
int sizeOfString sizetestStr;
for char a:testStr
if a
a ;
int main
string testStr;
getlinecin testStr;
MakeSentenceExcitedtestStr;
return ;
You can only edit the function using C and nothing else.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
