std::cin>>group[i].surname; //name entered
if (islower(group[i].surname[0])) //if the first character is lower case
group[i].surname[0] = toupper(group[i].surname[0]);//use the toupper function
@wildbird:
Still on that program, how can make it to output:
1. List of users arranged in alphabetical order of Surnames.
2. List of all users in the same department who come from the same state, but arranged according to sex.
Assuming I included a "state" as a new member of d struct
Thanks!
At the end of the day, I was able to list all users in alphabetical order by surname but was unable to sort users whose dept and state matched according to sex...
Thanks!