Hi guys, first post here :) so I'm trying to make a simple program which will sort strings in order of alphabet.
I've come up with something which looks like it should work, and having searched the web (and this forum :P) my code seems similar to what others have had in terms of selection sort, yet mine doesn't work/the same error didn't occur. Mine crashes with a memory error.
edit: code removed, solved
my program gets to the point of printing the original contents of the array, (until line 15) whilst running but then crashes somewhere thereafter, this is where I need your guys expertise and help, I've been trying some stuff for a while, but to no avail.
If anyone could nudge me in the right direction or recognise a glaring error i've missed/put that would be much appreciated :)