[an error occurred while processing this directive]
|
typedef struct _RECORD
{
char year;
char month;
char day;
char hour;
char min;
} RECORD;
RECORD Record[NUM];
RECORD Last;
for (int i = 0; i < NUM; i++)
{
if (Last.year > Record[i].year) continue;
else if ((Last.year == Record[i].year) && (Last.month > Record[i].month)) continue;
else if ((Last.month == Record[i].month) && (Last.day > Record[i].day)) continue;
else if ((Last.day == Record[i].day) && (Last.hour > Record[i].hour)) continue;
else if ((Last.hour == Record[i].hour) && (Last.min > Record[i].min)) continue;
Last.year = Record[i].year;
Last.month = Record[i].month;
Last.day = Record[i].day;
Last.hour = Record[i].hour;
Last.min = Record[i].min;
}
E-mail: info@telesys.ru