Witam, program nie czeka az wcisne klawisz przy pomocy funkcji getchar.
int main()
{
int wybor=0;
cout << "Ile liczb?"<<endl;
cin >> ile;
wpr(ile);
cout << "1.Sortuj od najmniejszej." << endl;
cout << "2.Sortuj od najwiekszej." << endl;
wybor = getchar();
if (wybor == 1)sort_min(ile);
if (wybor == 2)sort_max(ile);
wypisz_dane(ile);
system("pause");
return 0;
}