C/C++の宿題を片付けます 120代目 at TECH
[2ch|▼Menu]
215:デフォルトの名無しさん
08/12/17 22:33:06
>>214
ほい
#include <stdlib.h>

int compare(const int *a, const int *b)
{
return *a - *b;
}

main()
{
int numbers{10} = {82,47,2,29,95,15,38,66,51.72} ;

int i;

qsort(numbers, sizeof(numbers) / sizeof(int), sizeof(int), (int (*)(const void*, const void*))compare);
for (i = 0; i < 10; i++) {
printf("%d", data[i]);
}
printf("\n");
}



次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4942日前に更新/118 KB
担当:undef