Классы, их инициализация с помощью конструктора и инициализатора, перегрузка, страница 3

#include <iostream.h>

#include <stdlib.h>

int load()

{ char* path=new char [60];

  int choose=1,end=0;

  ifstream fin;

  int i;

  char buf;

  student* A;

            system("cls");

            do

            {

                        cout<<"Loading text from file...\nPath: ";

                        cin >> path;

                        fin.open(path);

                        if (!(fin))

                        {

                                    cout << "\nError in opening of the file. \nDo you want to try again " << "(1-Yes/0-No):"<<endl;

                                    cin >> choose;

                                    fin.close();

                                    if (choose==0) return 1;//here is a mistake

                                    else continue;

                        }

            }

            while (!(fin));

            delete [] path;

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

            i = 0;

            while (fin.peek()!=EOF)

            {

                        if (fin.peek()=='\n') fin.get(buf);

                        if (i==0) A=new student();

                        else

                                    A= new student();

                        A->operator >> (fin);

            }

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

            fin.close();

            return 0; //all is alright

}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

int save()

{

            char* path=new char [60];

            ofstream fout;

            ifstream ftest;

            int choose;

            system("cls");