#include
#include
#include
#include
#include
#include
#include
#include
struct Date {
int Year;
};
struct Trees {
int Width;
int Height;
Date soz;
};
using namespace::std;
using std::istream;
int main()
{
setlocale(LC_ALL, "Russian");
Trees remh = { 65.65, 482, 1855 };
Trees poli = { 95.56, 300.22, 1985 };
cout << "Введить название (poli или remh) : "; cin >> poli >> remh;
cout << "Ширина : " << poli.Width << "
" << "Высота : " << poli.Height << "
" << "Дата создания : " << poli.soz.Year << endl;
cout << "Ширина : " << remh.Width << "
" << "Высота : " << remh.Height << "
" << "Дата создания : " << remh.soz.Year << endl;
_getch();
return 0;
}
#include
#include
#include
#include
#include
#include
#include
struct Date {
int Year;
};
struct Trees {
int Width;
int Height;
Date soz;
};
using namespace::std;
using std::istream;
int main()
{
setlocale(LC_ALL, "Russian");
Trees remh = { 65.65, 482, 1855 };
Trees poli = { 95.56, 300.22, 1985 };
cout << "Введить название (poli или remh) : "; cin >> poli >> remh;
cout << "Ширина : " << poli.Width << "
" << "Высота : " << poli.Height << "
" << "Дата создания : " << poli.soz.Year << endl;
cout << "Ширина : " << remh.Width << "
" << "Высота : " << remh.Height << "
" << "Дата создания : " << remh.soz.Year << endl;
_getch();
return 0;
}