It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                7年前关闭。
            
                    
我收到一个错误:“ [”令牌之前应有')'

它所指的行是void quicksort(values[noOfNums],0,(noOfNums - 1));

但是我看不出这是怎么回事。

最佳答案

“ void”一词使它看起来像是quicksort的声明,但您显然在称它为“ sort”。删除空白,或写:

(void) quicksort( values[noOfNums], 0, noOfNums - 1 );


为了将来维护者的理智,请考虑将noOfNums重命名为更易于理解的名称。

09-09 19:31