[Help] RyDeR's Quicksort Algorithm
#5

Quote:
Originally Posted by d1git
Посмотреть сообщение
PHP код:
enum
    tempArrayEnum 
{
    
    
tempArraySort
};
new
    
tempArray[24][tempArrayEnum] = {
    
    
95372233751
};
SortDeepArray(tempArraytempArraySort, .order SORT_DESC); 
95, 3, 7, 2, 233, 75, 1, 0, 0, ...

Will become;

0, 0, 0, ..., 1, 2, 3, 7, 75, 95, 233

Loop through the array after you deep sort it, "continue" if "tempArraySort" == 0, this will give you your desired result.
It does not work, it just skips the entire LOOP because it's all zero.
For some reason, when I sort, the cells assume the value of "0", but when I remove the sort function and print the cells, it normally shows the values ​​imbuyed.
Reply


Messages In This Thread
[Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 12.01.2019, 20:04
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 12.01.2019, 21:30
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 13.01.2019, 06:50
Re: [Help] RyDeR's Quicksort Algorithm - by d1git - 13.01.2019, 08:04
Re: [Help] RyDeR's Quicksort Algorithm - by ApolloScripter - 13.01.2019, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)