宿題手伝いますYO!!
■ このスレッドは過去ログ倉庫に格納されています
0296デフォルトの名無しさん
NGNGvoid simple_sort(int table[], int table_size)
{
for(int i = 0; i < table_size-1; i++)
{
int work = i;
for(int j = i+1; j < table_size; j++)
{
if(table[work] < table[j])
work = j;
}
int temp = table[i];
table[i] = table[work];
table[work] = temp;
}
}
これでどう?
■ このスレッドは過去ログ倉庫に格納されています