sort names ??

Hi..

I create an program to enter names of products and price...

i did that by using arrays and while loop menu.

I want to do an additional things, when the user enter the name it automatic sorted. how i can do that ? it's my assignment for my class.


thanks.
I want to do an additional things, when the user enter the name it automatic sorted. how i can do that ?

Either sort the array(s) after a new entry or find where the entry belongs in the already sorted array and insert it there.
can u explain for me by using code ?
Last edited on
Topic archived. No new replies allowed.