- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
#include <iostream>
#include <string>
#include <stdio.h>
#include <time.h>
int main()
{
time_t now = time(0);
struct tm tstruct = *localtime(&now);
if (tstruct.tm_yday & 0xff) {
std::cout << "Pasony, segodnja den' programmista!"<< std::endl;
} else {
/*Syscall platform dependent implementation */
//KeepCoding();
}
return 0;
}
P.S. Печени не нужен «Гепабене». Печени нужно — «не бухать».
fxd
if ( (tstruct.tm_yday == 0xff)) {
==
У вас БИТКСОР.
ну и пох