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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cs50x2023 × 7cs50x × 2
practiceproblems × 2
pset5 × 1
check50 × 1
array × 1
help × 1
command-line-arguments × 1
problem × 1
selectionsort × 1
week3 × 1
mario.more × 1
algorithm × 1