26 lines
447 B
C++
26 lines
447 B
C++
#include <iostream>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
void MakeSentenceExcited(string& sentenceText) {
|
|
|
|
/* Your solution goes here */
|
|
//Note that I had to use single quotes.
|
|
for (int i =0; i<sentenceText.size();i++){
|
|
if (sentenceText.at(i) == '.'){
|
|
sentenceText.at(i) = '!';
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
int main() {
|
|
string testStr;
|
|
|
|
getline(cin, testStr);
|
|
MakeSentenceExcited(testStr);
|
|
cout << testStr;
|
|
|
|
return 0;
|
|
}
|