代码如下:
#include#include #include #include #include using namespace std; void sig_handler( int sig){ if(sig == SIGINT) { cout<<"ctrl+c has been keydownd"<
编译:
arm-linux-gnueabihf-g++ -o signal signal.cpp
本文共 380 字,大约阅读时间需要 1 分钟。
代码如下:
#include#include #include #include #include using namespace std; void sig_handler( int sig){ if(sig == SIGINT) { cout<<"ctrl+c has been keydownd"<
编译:
arm-linux-gnueabihf-g++ -o signal signal.cpp
转载于:https://www.cnblogs.com/aaronLinux/p/6800189.html