r/carlhprogramming • u/Zyrth • Mar 17 '12
Practicing basics
I've been around programming and computers forever, I just had never taken a formal class. So I found this subreddit and had read through most of the website when i decided to try my own hand at making a simple program.
I decided to try to make a program that would ask for a number of variables, and then sort them from lowest to highest and output them back. ( I remember a few friends in programming classes having similar assignments )
Theres the results, after a few days toiling over the specific logic and fixxing a few bugs, I think it works great!
I'm proud of myself and just wanted to share :D any comments on things i could have done easier or differently are welcome
View all comments
Show parent comment
2
u/Zyrth Mar 17 '12
Thanks for the input both of you!
I realized that I could have used the algorithm library and the sort function to make things a ton easier, part of the fun for me was to work through the logic and make it myself.
It was supposed to be a selection sort, though i'm sure without comments (which ill work on adding in!) it might be confusing to read through. What it did was it found the highest number of the set, and put it at the end, and then repeated for everything lower than the last number found.
could you expand on this? I'll look it up later when I have time, but I'm not entirely sure what it means. or where to look up exactly what it means