Help - Search - Members - Calendar
Full Version: C++
CyberiaPC.com Community > Technical Zone > Programming (Java SE/EE, VB, C#)
Anna
I am confused on how you would pass a character array to a function so it would sort names alphabetically. I'm getting many errors and can't get passed them to see what I'm doing wrong. Does Bubble sort work for strings? If so, how? Any help on this would be so much appreciated.

Thanks,

Anna

P.S. I love your site!
usr.c
Hi there,

Are you tring to pass each element of the array to a function? If you onlyyou're trying to sort the elements in the arary, then you can simply pass the array size to the BubbleSort() function and then implement the bubble sort alogorithm.

Does this help?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.