Original Post
http://www.critticall.com/
how they say it?
singularity here i come...
template<class RI>
void jitter_sort(RI begin, RI end)
{
int n = (int)(end-begin); --n;
int o=0, p=1, k=1, i=0, j=1, l;
while(k>=i)
{
k=-1;
while(n>k)
{
k++; l=(&*begin)[k];
if(j>l)
{
(&*begin)[i]=l; i++; (&*begin)[k]=j;
}
if(l>j)
{
i=k; j=(&*begin)[k];
}
}
j=0; n=i-p;
}
}
quote:
Original post by Anonymous Poster
We need to create games that will fit postsingularity era.
quote:
Original post by nevone
Sort from the site critticall.com for several unique records, works only for numbers greater or equal to zero. What shouldn''t be a problem since an addition and a subtraction to all members of the array, is not hard to perform.
Generally, all variables used in c-critticall language are by default int type set to 0. So, variable j should be set to zero if we want to sort numbers of values from 0 to n.
0+ nevone
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more