I was wondering whats the simplest way to count and sort the elements of each array when using a set like
char list[40][30];
theyre being brought in from a text file that would simply look something like this
apples
bannanas
oranges
grapes
i would need to count each element, sort them into a new array and determine the largest and smallest whats the easiest way to do this without vectors or anything like that? maybe using strncpy or would i need a paraell array?
thanks for your help!
P.S. ive already managed to stream them in from the file fine and that array matches the input file