#include <iostream>
#include <ctime>
struct me {
const char* name = "ilya";
int age = 15;
double daystillbday;
};
int main() {
time_t now;
time_t birthday;
struct tm birthday_date;
me ilya;
time(&now);
birthday_date.tm_year = 2025 - 1900;
birthday_date.tm_mon = 0;
birthday_date.tm_mday = 31;
birthday_date.tm_hour = 12;
birthday_date.tm_min = 30;
birthday_date.tm_sec = 1;
birthday_date.tm_isdst = -1;
birthday = mktime(&birthday_date);
ilya.daystillbday = difftime(birthday, now) / (60 * 60 * 24);
std::cout << "Days left till my birthday: " << ilya.daystillbday << std::endl;
return 0;
}
Pinned Loading
-
-
voltbomb
voltbomb PublicA pretty simple and a pretty poor SMS-Bomber in Go. I was too lazy to add more services, so make it on your own.
Go
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.