摘要: 错误处理 头文件 #include<error.h> 这样一来,errno就是个数据类型 errno=ECONNABORTED|EINTR char* s="xxxxxx" perror(s); exit(-1); read函数 返回值: >0,读到的文件字节长度 =0 (文件读到‘\o',管道中读 阅读全文
posted @ 2020-02-07 20:45 saintdingtheGreat 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Qt C++ 定义窗体类时,如果按照一般的c++类声明静态成员变量会提示undefined identifier,下面给出正确的方法 如果定义了一个QMainWindow类的子类MainWindow,添加静态变量,其头文件如下 mainwindow.h 先声明 #ifndef MAINWINDOW_ 阅读全文
posted @ 2020-02-07 02:53 saintdingtheGreat 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 实验环境:ubuntu18.04 Qt5.9 功能和总体设计描述 (插图 俄罗斯 陆军 伊斯坎德尔战术导弹) 自定义微件 mybtn,供按钮提升使用 定时器两个timerid, timerid1 timerid用于导弹发射倒计时 timerid1用于记录首长和飞行员通信时间 mybtn类的事件mou 阅读全文
posted @ 2020-02-07 02:34 saintdingtheGreat 阅读(329) 评论(0) 推荐(0) 编辑