| Reciever80 (7) | |||
|
Hey guys, thanks for reading. I need to sort an array of char pointers, and I'm using quick sort to do so. One part of quick sort is swapping elements, and so far every variation I try isn't letting me. I'll either get access violation errors if I initialize tmp, and when I don't, I get 'initialize tmp' errors. If you guys could tell me what I'm doing wrong, so I can learn from it, I would appreciate the insight. I'm trying to watch the variables of my pointer array through the debugger on VS2012 to try and watch what the sorting is doing. When I'm first initializing it, it works (I'll add a comment in my code to show where), however immediately after, it only shows the value of the first index in the pointer array. If there's a way to view the value of every index in the pointer array, I would love that too. Here's the code:
| |||
|
Last edited on
|
|||