I want to create 2 functions to (1) convert a passed string into proper case (capitalize the first alpha character of a string and every alpha character that follows a non-alpha character); (2) sort the array of names (after it has been converted to proper case).
I tried these two:
console.writeline (lower.toUpper());
void bubblesort (string array[],int length);
but I don't know if they are good.somebody has an idea please?
If you do however there is some pointers for you:
First you should iterate over all characters in string (using range-based for on normal for loop) and apply std::tolower() to all of them.
Second you should sind first alpabetical character in string and apply toupper() to it.