Пример #1
0
int main(int argc, char* argv[])
{
	int arr[SIZE];
	clock_t bg, end;
	array_init(arr, SIZE);
	array_show(arr, SIZE);
	printf("\n");
	bg = clock();
//	array_insert(arr, SIZE);
	//array_buble(arr, SIZE);
//	array_select(arr, SIZE);
	array_quick(arr, SIZE);
	end = clock();
	array_show(arr, SIZE);
	printf("\n");
	printf("Time:%.9fs\n", (double)(end - bg)/CLOCKS_PER_SEC);

	return 0;
}
Пример #2
0
		void Array::show() {
			array_show(this->obj);
		}