Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到一个错误:在 '[' 标记之前应为 ')'
它所指的线是 void quicksort(values[noOfNums],0,(noOfNums - 1));
void quicksort(values[noOfNums],0,(noOfNums - 1));
但我看不出它有什么问题。
“void”这个词使它看起来像一个快速排序的声明,但你显然是在调用它。删除 void,或写:
(void) quicksort( values[noOfNums], 0, noOfNums - 1 );
为了未来维护者的理智,请考虑重命名noOfNums为更易于理解的名称。
noOfNums