int main() {
setlocale(LC_CTYPE, "Russian");
cTime* ct;
Order_of_day* ood;
int n;
cout << "Введите количество записей: ";
cin >> n;
ct = new cTime[n];
ood = new Order_of_day[n];
for (int i=0; i<n; i++)
{
char str[80];
cout << "Ведите задачу: ";
cin >> str;
// преобразуем из ASCII в ANCI
for (int j=0; str[j]!=0; j++)
{
if ((-128<=str[j])&&(str[j]<=-81)) str[j] += 64;
else if ((-32<=str[j])&&(str[j]<=-17)) str[j] += 16;
};
int h, m, s;
cout << "Укажите время: ";
cin >> h >> m >> s;
ct[i].set_hour(h);
ct[i].set_minute(m);
ct[i].set_second(s);
ood[i].set_hour(h);
ood[i].set_minute(m);
ood[i].set_second(s);
ood[i].set_task(str);
ct[i].print1(); cout << "\n";
ct[i].print2();
}
cout << "\n";
for (int i=0; i<n; i++)
ood[i].print1();
system("PAUSE");
for (int i=0; i<n; i++)
ood[i].print2();
system("PAUSE");
delete[] ood;
delete[] ct;
return 0;
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.