0

I have some sentences that I want to print out the first character of each sentence. when I print it out I get the first character many times. here is the code. I just want the first character of each sentence printed out once per line.

int i;
int j;

	for (i = 0; i < FIindex; i++)
	{
	    for (j = 0; j < FJindex; j++)
	   {
	        std::cout << fragments[i][0] << " " << std::endl;
	    }
		
                }
2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Ancient Dragon
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.