I have some sentence fragments and some words. I need to print out sentence1 + word + sentence2 capitalize the first charater in sentence1. Then, sentence3 + word + sentence4 capitalize sentence
right now it is printing the first sentence capitalized + word + second sentence
second sentence not capital + word + first sentence capital
third sentence captial + word + first sentence capital
for (i = 0; i < index; i++)
{
//Converts 1st character in each sentence to uppercase
if ( i % 2 == 0)
fragments[i][0] = toupper(fragments[i][0]);
//Prints out entire char array
std::cout << fragments[i] << " " << words[i] << " " << fragments[i % 2 ==0] << "." << " " << endl;
}