Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
9
Добавлен:
01.05.2014
Размер:
787 б
Скачать
// quicksort.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <stdlib.h>
#include "mf.h"
#include "constantes.h"

const unsigned int L = 10;
//unsigned int N = 0;

int main(int argc, char* argv[])
{
	int i;
	HANDLE h;
	DWORD Id = 0;
	using namespace::std;
	srand(4);
	double array[L] = {2, 2, 3, 1, 2, 1, 1, 1};
	for (i = 0; i < L; i++)
	{
		array[i] = rand()%50;
		cout << array[i]<<" ";
	}
	cout << endl;
    sortarray(array, L);

    for (i = 0; i < L; i++)	
		cout << array[i]<<" ";
	LPRECORD Param = new RECORD;
	Param->data = array;
    Param->size = L;
    void * Param1 = (VOID *) Param;
	h = CreateThread(NULL, 0, ThSort, Param1, 0, &Id);
	return 0;
}


Соседние файлы в папке Быстрая сортировка
  • #
    01.05.201476 б8constantes.h
  • #
    01.05.20146.19 Кб8mf.cpp
  • #
    01.05.2014455 б8mf.h
  • #
    01.05.2014787 б9quicksort.cpp
  • #
    01.05.20143.5 Кб10quicksort.dsp
  • #
    01.05.2014543 б9quicksort.dsw
  • #
    01.05.201458.37 Кб9quicksort.ncb
  • #
    01.05.201448.64 Кб9quicksort.opt
  • #
    01.05.2014252 б9quicksort.plg