Skip to main content
2 votes
Accepted

I need help to fix my selection sort code - Practice Problems (Average High Temperatures)

that's a lot of code for a selection sort. It should be able to be sorted without need for a second array and with only two nested for loops. The setup is pretty straightforward. I'll give a verbal ...
Cliff B's user avatar
  • 69k
1 vote
Accepted

'i' is undefined error

Simple problem. The code is trying to use i as the counter in the for loop, but i hasn't been declared. Try this instead. Note the addition of the type declaration keyword "int". for (int ...
Cliff B's user avatar
  • 69k

Only top scored, non community-wiki answers of a minimum length are eligible