上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 125 下一页

2016年8月30日

摘要: 截图及内容参考 《Linux内核源代码情景分析》 《自己动手写操作系统》 nasm boot.asm -o boot.bin dd if=boot.bin of=a.img bs=512 count=1 conv=notrunc 保护模式下各个段权限转移规则段分为数据段和代码段代码段分为一致代码段和 阅读全文
posted @ 2016-08-30 15:47 itdef 阅读(531) 评论(0) 推荐(0)

2016年8月28日

摘要: 主要代码 #pragma once#include "pre.h"#include <thread> NAMESPACE(DEF) class Socket {public: Socket() :s_(INVALID_SOCKET){} ~Socket() { if(INVALID_SOCKET ! 阅读全文
posted @ 2016-08-28 22:13 itdef 阅读(337) 评论(0) 推荐(0)

2016年8月27日

摘要: 解析一个如下的CONFIG文件 代码 阅读全文
posted @ 2016-08-27 13:56 itdef 阅读(553) 评论(1) 推荐(0)

2016年8月26日

摘要: 设计模式 模板模式如果有一个流程如下step1();step2();step3();step4();step5();其中step3() step5()是需要用户自己编写使用其他步骤是固定的那么可以写成 阅读全文
posted @ 2016-08-26 20:15 itdef 阅读(256) 评论(0) 推荐(0)

2016年8月22日

摘要: 参考此博客 http://yerik.blog.51cto.com/1662422/743998 阅读全文
posted @ 2016-08-22 17:29 itdef 阅读(408) 评论(0) 推荐(0)

2016年8月15日

摘要: 原文 https://cmake.org/cmake-tutorial/ 以下是一个循序渐进的教程,它覆盖了CMAKE帮助改进的通常的构建系统的话题。许多话题在《掌握CMAKE》(《Mastering CMake》)已经作为单独话题介绍,但是在一个示例工程中运用它们会更有帮助于学习。教程可以再本项目 阅读全文
posted @ 2016-08-15 16:44 itdef 阅读(251) 评论(0) 推荐(0)

2016年8月13日

摘要: DEBIAN操作系统 预备操作: 安装 gcc g++ make cmake 开启Terminal 切换到超级用户 下载安装上述软件 // makefile 内容如下 同一目录下有三个文件 main.cpp Test1.cpp Test1.h Test2.cpp Test2.h 最后结果: 内容解释 阅读全文
posted @ 2016-08-13 14:23 itdef 阅读(1577) 评论(0) 推荐(0)

2016年8月7日

摘要: 使用vc2015进行C++ 模板的学习实验和笔记 用简单示例学习了解STL template大部头理论书 讲解各种规则和各种规则例外的解决办法 集中精力在20%的规则中的阴暗角落而不是80%实践中要注意的东西 https://github.com/wuye9036/CppTemplateTutori 阅读全文
posted @ 2016-08-07 14:07 itdef 阅读(268) 评论(0) 推荐(0)

2016年8月6日

摘要: #include <iostream>#include <typeinfo> void foo(){ std::cout << "foo() called" << std::endl;} typedef void FooT(); // FooT is a function type, // the 阅读全文
posted @ 2016-08-06 18:28 itdef 阅读(250) 评论(0) 推荐(0)
摘要: c++ template学习记录 使用模板将实际类型的指针进行封装 当变量退出作用域 自动delete 阅读全文
posted @ 2016-08-06 17:40 itdef 阅读(391) 评论(0) 推荐(0)
上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 125 下一页

导航