#include <iostream> #include <thread> #include <unistd.h> int main(int argc,char *argv[]) { while(1) { std::cout<<"Hello WWold!!!"<<std::endl; sleep(10); } return 0; }
编译指令: g++ -std=c++11 Compile.cpp -o compile
执行指令: ./compile
2021-07-26 08:40:27
#include <iostream> #include <thread> #include <unistd.h> int main(int argc,char *argv[]) { while(1) { std::cout<<"Hello WWold!!!"<<std::endl; sleep(10); } return 0; }
编译指令: g++ -std=c++11 Compile.cpp -o compile
执行指令: ./compile