Chat with our AI personalities
AJAX
write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.
This sounds like a homework question...
int getNumMatches(String[] names) { int numMatches = 0; for(String name:names) { if(name.endsWith("ie") name.endsWith("y")) { ++numMatches; } } return numMatches; }
Writing a C program that uses dynamic memory allocation to sort names in ascending order is a typical computer science assignment. To write this program, you must be in UNIX.