the error is it can't take the next name that user input.
and can someone tell me how i can sort the name that user input in alphabetically order then print the first name and last name in the order. i try search the google, but i can't understand it.
i try, but the input prompt the user enter 6 times names,but i just put 3 people.
it suppose to be when the user put 3 people, the program will prompt the user to enter 3 names only.then the program must arrange the name alphabetically.
but its still get an errors...
i put it before the main, and its says"expression must have object to pointer type".
can i just delete the [0]?
and please explain the code...