It's suppose to sort by product name

Can't get sorter to work

Posted 18 November 2007 - 07:58 PM

Now this is really the last problem (for real now) with this assignment. My sorter is not working. I managed to sort by product name in my previous assignment; however, I can't get it to work on this one. I changed things around so much in the program that I'm lost on how to get it going again. I also blocked that part of the code off with delimiters; I didn't want it to interfere with program

Attached image(s)

Replies To: Can't get sorter to work

Re: Can't get sorter to work

Posted 19 November 2007 - 12:55 PM

Well one thing I see right off the bat here is that you didn't close your comment after sort() ended. You open the comments using /* but then you never used */ after sort() was closed. You left it open which makes everything else a bit wacky I am sure.

Secondly, your working version that you showed at the end is not complete.

Thirdly, with sort officially commented out and such, list the error messages you are getting so we can see where we need to start looking for your problems.

Lastly, as a word of advice, always change a little, test, change a little more and test. So if something breaks you can immediately see what is causing the problem. Right now you have so much commented out and left in that it is hard to see what exactly you are doing wrong.