Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sortStreets(string streetList[], int streetCount)
- {
- string currentMin = "";
- int current;
- int next;
- for (current = 0; current < (streetCount-1) ; current++)
- {
- currentMin = streetList[current];
- for (next = current+1; next < streetCount; next++)
- {
- if (streetList[next] < streetList[current])
- {
- currentMin = streetList[next];
- }
- }
- swap(streetList[current], streetList[next]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement