#include <iostream>
#include <thread>
#include "other.hpp"
auto alive = true;
void (*busyUntilSleep)() = f;
/*void toDeath() {*/
/* alive = false;*/
/*}*/
int main(int, char **) {
using namespace std::chrono_literals;
while (alive) {
std::this_thread::sleep_for(8.5h);
std::cout << "今天真好啊~\n";
busyUntilSleep();
}
return -1;
}
完成复杂的事情。或者完成简单的事情,干净、效率、艺术。