I am working on a program which (in part) reads input through a function get_data(string[], int[], int&) then outputs the data in the correct format. The data is input into a parallel stream.
Expected input (notice the lack of space between first and last names)
waSHiNGtOn,geOrGe, 8
liNCOln,Abraham, 10
Well then the first part of LB's answer is what you want to concentrate on. You need to iterate through each element of the array and apply whichever isupper or tolower command as required.
Thanks for all the suggestion thus far.
Here is what I have for the function thus far. Note it fulfills all requirements except capitalizing the firs name(which occurs directly after the comma).
Any suggestions on capitalizing the first letter after the comma?
void alter_name( string nm[], int n)
{
string wrd;