Лабораторна 2
// stdafx.h: включаемый файл для стандартных системных включаемых файлов
// или включаемых файлов для конкретного проекта, которые часто используются, но
// не часто изменяются
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: Установите здесь ссылки на дополнительные заголовки, требующиеся для программы
// lab-2.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "TimeTable.h"
#include <iostream>
using namespace std;
int main()
{
TimeTable A, B(1, 5, "boing", "Paris"), C(B),D;
D = C;
cout << "A:\n";
A.Print();
cout << "B:\n";
B.Print();
cout << "C:\n";
C.Print();
cout << "D:\n";
D.Print();
system("pause");
system("cls");
//----------- Scan test
cout << "scan test\n";
A.Scan();
A.Print();
system("pause");
system("cls");
//------------ set test
cout << "set test\n";
A.SetNumber(56);
A.SetPeriod(78);
A.SetPlane("Su-47");
A.SetVay("USA");
system("pause");
system("cls");
//----------- get test
cout<<"get test\n"<<A.GetNumber()<<endl;
cout << A.GetPeriod() << endl;
cout << A.GetPlane() << endl;
cout << A.GetVay() << endl;
return 0;