上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 89 下一页
该文被密码保护。 阅读全文
posted @ 2021-07-02 12:59 远方是什么样子 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1.新建类TextEdit继承自QTextEdit; 2.重写event事件; 3.判断tab键按下,return false; TextEdit::TextEdit(QWidget* paernt) : QTextEdit(parent) { } bool TextEdit::event(QEve 阅读全文
posted @ 2021-07-01 19:58 远方是什么样子 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 老师:青岛大学-王卓 #include <iostream> using namespace std; typedef struct StackNode { int data; struct StackNode* next; }StackNode, *LinkStack; //链栈的初始化 void 阅读全文
posted @ 2021-06-28 21:25 远方是什么样子 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; #define MAXSIZE 100 struct Stack { int* top; int* base; int stacksize; }; //顺序栈的初始化 bool initStack(Stack& s) 阅读全文
posted @ 2021-06-28 20:35 远方是什么样子 阅读(75) 评论(0) 推荐(0) 编辑
摘要: //带头结点#include <iostream> #include "stdlib.h" using namespace std; struct Node { int data; struct Node* next; }; //初始化 int initList(Node** head) { *he 阅读全文
posted @ 2021-06-28 11:31 远方是什么样子 阅读(37) 评论(0) 推荐(0) 编辑
摘要: main()函数写成了mian() 阅读全文
posted @ 2021-06-19 15:47 远方是什么样子 阅读(876) 评论(0) 推荐(0) 编辑
摘要: connect()第五个参数: Qt::AutoConnection:默认值。如果信号的接收者和发送者在同一个线程中,则使用Qt::DirectConnection,否则使用Qt::QueuedConnection,在信号发射时自动确定关联方式。 Qt::DirectConnection:信号发出后 阅读全文
posted @ 2021-06-18 17:19 远方是什么样子 阅读(465) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-06-18 17:04 远方是什么样子 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-06-17 22:06 远方是什么样子 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 我们知道,用C++开发的时候,用来做基类的类的析构函数一般都是虚函数。可是,为什么要这样做呢?下面用一个小例子来说明: 有下面的两个类: class ClxBase { public: ClxBase() {}; virtual ~ClxBase() {}; virtual void DoSomet 阅读全文
posted @ 2021-06-17 19:35 远方是什么样子 阅读(44) 评论(0) 推荐(0) 编辑
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 89 下一页