Реферат: Сортировка массивов методом вставок
cout<<" 0. Exit." <<endl;
cout<<endl<<"Your choice : ";
int i;
do
{cin>>i;
if (i<0 || i>9) cout<<endl<<"Error! Try again : ";
}
while (i<0 || i>9);
switch (i)
{case 1 : MakeNewList(); break; //Make New List
case 2 : AddElements(); break; //Add Element
case 3 : PrintList(); break; //Print List
case 4 : DeleteElement(); break; //Delete Element
case 5 : SaveList(); break; //Save List
case 6 : n=0; break; //Erase List
case 7 : OpenList(); break; //Open File
case 8 : FindElement(); break; //Find Element
case 9 : SubMenu(); break; //Sort List
case 0 : return -1; //Exit
}
return 0;
}//menu
----------------------------------------------------------------- func.cpp
#include "func.h"
extern int *MasP[100],n,argcGlobal;
extern ofstream f;
const int N=100;
//////////////////MakeNewList//////////////////
void MakeNewList(){