Реферат: Программирование на С++
return 0;
}
int TreeWork::SaveList()
{if (BegP==NULL)
{cout<
ofstream F;
char *FileName=new char[25];
cout<
F.open(FileName);
PList=BegP;
do
{i=0; Mass=PList->Root->Body; PList=PList->LNext; if (PList!=BegP) F< else F< }
while (PList!=BegP);
F.close();
delete [] FileName;
return 0;
}
int TreeWork::OpenList()
{if (BegP!=NULL) {cout<
cout<
char *FileName=new char[25];
cin>>FileName;
ifstream f;
ElementQuantity=0;
f.open(FileName);
char Next;
Next=f.peek();
while (Next!=EOF)
{
f>>Mass;