[Solved] C++: How-to sort 2-d array with qsort? [closed]
use std::sort from the <algorithm> header you can use a lambda expression as comparison function 4 solved C++: How-to sort 2-d array with qsort? [closed]
use std::sort from the <algorithm> header you can use a lambda expression as comparison function 4 solved C++: How-to sort 2-d array with qsort? [closed]
Your code as written has several syntax errors, and also your comparison function doesn’t do quite what you want. Quoting from the manpage for qsort: The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respecā tively less than, equal to, or … Read more