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

#include "menu_action_functions.h"

#include <stdio.h>

int main()

{         

            char c;

            while (1)

            {

                        system("cls");

                        switch (menu("menu_info.txt"))

                        {

                                    case 1: load();

                                                            break;

                                    case 2: { student* A= new student(); A->operator >> (cin);}

                                                            break;

                                    case 3: save();

                                                            break;

                                    case 4: student::display_all();

                                                            c=getchar();

                                                            break;

                                    case 5: edit();

                                                            c=getchar();

                                                            break;

                                    case 6: l_delete();

                                                            c=getchar();

                                                            break;

                                    case 7: system("cls");

                                                            cout<<"This will update all student info using system time.\n";

                                                            student::update(); break;

                                    case 8: return 0;

                                    case (-1): cout<<"\n\nError: Can't create menu. Try again.\n";

                                                               return 1;

                        }

            }

}


4.2.  Подключаемые файлы (заголовочные)

4.2.1.  File.h

#include <fstream>