会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zackary丶Liu
「 Goals determine what you are going to be. 」
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
22
下一页
2018年6月6日
MAC 地址(单播、组播、广播地址分类)
摘要: 简介 一个制造商在生产制造网卡之前,必须先向 IEEE 注册,以获取到一个长度为 24bit 的厂商代码,也称为 OUI(Organizationally Unique Identifier)。制造商在生产制造网卡的过程中,会往每一块网卡的 ROM 中烧入一个 48bit 的 BIA(Burned
阅读全文
posted @ 2018-06-06 22:24 Zackary丶Liu
阅读(22526)
评论(0)
推荐(3)
2018年5月29日
OJ:神秘的数组初始化
摘要: 描述 填空,使得程序输出指定结果 #include <iostream> using namespace std; int main() { int * a[] = { // 在此处补充你的代码 }; *a[2] = 123; a[3][5] = 456; if(! a[0] ) { cout <<
阅读全文
posted @ 2018-05-29 21:04 Zackary丶Liu
阅读(686)
评论(0)
推荐(0)
OJ:奇怪的类复制
摘要: 描述 程序填空,使其输出9 22 5 #include <iostream> using namespace std; class Sample { public: int v; // 在此处补充你的代码 }; void PrintAndDouble(Sample o) { cout << o.v;
阅读全文
posted @ 2018-05-29 20:31 Zackary丶Liu
阅读(663)
评论(2)
推荐(0)
2018年5月25日
Qt5 在添加 Q_OBJECT 后发现编译出错的原因
摘要: 在 Qt 编写过程中,如多线程使用信号槽时,需要添加 Q_OBJECT,但是在添加之后发现编译老会出错。如下: ~~~~ class ThreadSxxx : public QThread { Q_OBJECT public: ThreadSxxx(); signals: signal_trig()
阅读全文
posted @ 2018-05-25 00:20 Zackary丶Liu
阅读(582)
评论(0)
推荐(0)
2018年5月24日
完美实现 Windows 下网络通信
摘要: 编译环境:DEV C++ 配置编译器 Windows 下 实现 Socket 编译需要 ws2_32.lib 这个库的支撑,所以我们编译前应该配置下编译器,具体配置步骤如下: ~~~~ Tools Compiler Options ~~~~ 加入 l 链接,如图所示: 实现的功能 服务器端与客户端可
阅读全文
posted @ 2018-05-24 13:03 Zackary丶Liu
阅读(480)
评论(0)
推荐(0)
2018年5月18日
OJ:自己实现一个简单的 priority_queue
摘要: Description 补足程序,使得下面程序输出结果是: 1.8 2.4 3.8 4.9 8.8 #include <iostream> #include <algorithm> #include <string> #include <queue> #include <set> #include
阅读全文
posted @ 2018-05-18 10:52 Zackary丶Liu
阅读(381)
评论(0)
推荐(0)
2018年5月17日
OJ:访问 const 成员函数问题
摘要: Description 补足程序使得其输出结果是: 40 #include <iostream> #include <string> using namespace std; struct A { int n; A() { }; A(int n_ ):n(n_) { } // Your Code H
阅读全文
posted @ 2018-05-17 20:47 Zackary丶Liu
阅读(175)
评论(0)
推荐(0)
OJ:重载 << 运算符
摘要: Description 补足程序,使得下面程序输出的结果是: ****100 #include <iostream> #include <string> using namespace std; // Your Code Here string Print1() { return "****"; }
阅读全文
posted @ 2018-05-17 20:34 Zackary丶Liu
阅读(260)
评论(0)
推荐(0)
2018年5月16日
Qt 编程中 namespace Ui { class Widget; } 解析
摘要: class Widget 里面有个声明 Ui::Widget ui,这个 ui 是使用 namespace Ui 里的 Widget 类声明的,该类只是简单的继承了 ui_widget.h 里的 Ui_Widget 类(没有添加任何成员)。现在就很清楚了,这两个看起来名字一样的 Widget 其实是
阅读全文
posted @ 2018-05-16 00:01 Zackary丶Liu
阅读(6225)
评论(0)
推荐(1)
2018年5月14日
QT 实现图片旋转的两种方法
摘要: 第一种方案 使用 QPixmap 的 transformed 函数来实现旋转,这个函数默认是以图片中心为旋转点,不能设置旋转的中心点,使用如下: ~~~~ QMatrix matrix; matrix.rotate(45); QLabel Label= new QLabel(); Label set
阅读全文
posted @ 2018-05-14 22:24 Zackary丶Liu
阅读(19518)
评论(0)
推荐(3)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
22
下一页
公告