随笔分类 -  c++代码练习

上一页 1 ··· 37 38 39 40 41 42 43 44 45 46 下一页

逆转二叉树
摘要:逆转二叉树 代码练手 输出: 4 2 1 3 7 6 94 7 9 6 2 3 1 阅读全文

posted @ 2016-11-20 16:02 itdef 阅读(380) 评论(0) 推荐(0)

C++ 提取网页内容系列之五 整合爬取豆瓣读书
摘要:工作太忙 没有时间细化了 就说说 主要内容吧 下载和分析漫画是分开的 下载豆瓣漫画页面是使用之前的文章的代码 见http://www.cnblogs.com/itdef/p/4171179.html http://www.cnblogs.com/itdef/p/4081963.html 注意 豆瓣网 阅读全文

posted @ 2016-10-12 08:46 itdef 阅读(663) 评论(1) 推荐(0)

VC获取网页标题,解决乱码问题 学习
摘要:博主不让转载 仅记录下地址 稍后 放出自己的代码 http://blog.csdn.net/friendan/article/details/11821135 阅读全文

posted @ 2016-09-30 09:19 itdef 阅读(277) 评论(0) 推荐(0)

c++沉思录中 对字符串进行围边 横向连接 竖向连接操作的练习
摘要:// MyPics.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include using namespace std; string::size_type width(const vector& v) { string::size_type maxLen = 0; for (vector::con... 阅读全文

posted @ 2016-09-27 16:03 itdef 阅读(402) 评论(0) 推荐(0)

数据库学习笔记
摘要:数据库基本概念 1 根据不同的属性的性质 分类存储 比如类别 访问频率 相关事物等 同一属性数据也需要进行分类(table) 2 列Column 数据内容的显示保存要求格式统一 例如: 姓名 部门 入职时间 以上称呼为列(Column)或者字段(Field) 3 定义数据类型(DataType) 姓 阅读全文

posted @ 2016-09-17 14:47 itdef 阅读(201) 评论(0) 推荐(0)

操作系统学习笔记(三) windows内存管理
摘要://系统物理页面是由 (Page Frame Number Database )简称PFN数据库来进行管理,实际上是一个数组,每个物理页面都对应一个PFN项。 进程的地址空间是通过VAD(Virtual Address Destriptor)管理。每个进程都有一个AVL树来保存这些VAD节点,来记录 阅读全文

posted @ 2016-09-04 13:40 itdef 阅读(641) 评论(0) 推荐(0)

操作系统学习笔记(一) 段权限转移规则
摘要:截图及内容参考 《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 阅读(519) 评论(0) 推荐(0)

静态HTML服务器
摘要:主要代码 #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 阅读(335) 评论(0) 推荐(0)

解析config文件 练手代码
摘要:解析一个如下的CONFIG文件 代码 阅读全文

posted @ 2016-08-27 13:56 itdef 阅读(551) 评论(1) 推荐(0)

POP邮件收取邮件 代码
摘要:参考此博客 http://yerik.blog.51cto.com/1662422/743998 阅读全文

posted @ 2016-08-22 17:29 itdef 阅读(406) 评论(0) 推荐(0)

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

posted @ 2016-08-15 16:44 itdef 阅读(248) 评论(0) 推荐(0)

cmake 及make 实践记录
摘要:DEBIAN操作系统 预备操作: 安装 gcc g++ make cmake 开启Terminal 切换到超级用户 下载安装上述软件 // makefile 内容如下 同一目录下有三个文件 main.cpp Test1.cpp Test1.h Test2.cpp Test2.h 最后结果: 内容解释 阅读全文

posted @ 2016-08-13 14:23 itdef 阅读(1574) 评论(0) 推荐(0)

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

posted @ 2016-08-07 14:07 itdef 阅读(265) 评论(0) 推荐(0)

模板学习实践三 functor
摘要:#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 阅读(247) 评论(0) 推荐(0)

模板学习实践二 pointer
摘要:c++ template学习记录 使用模板将实际类型的指针进行封装 当变量退出作用域 自动delete 阅读全文

posted @ 2016-08-06 17:40 itdef 阅读(387) 评论(0) 推荐(0)

模板学习实践一 accumulationtraits
摘要:// 11111.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include template class AccumulationTraits; template class AccumulationTraits { public: typedef int Acct; static Acct zero() { r... 阅读全文

posted @ 2016-07-30 21:42 itdef 阅读(273) 评论(0) 推荐(0)

黑客屏保 代码来自网络搜索 做了部分改动
摘要:版本2 阅读全文

posted @ 2016-07-19 17:50 itdef 阅读(1295) 评论(1) 推荐(0)

boost asio 学习(九) boost::asio 网络封装
摘要:http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting- started-with-boostasio?pg=10 9. A boost::asio network wrapper (TCP) 现在我们了解asio和TCP网络 阅读全文

posted @ 2016-06-28 11:45 itdef 阅读(1623) 评论(0) 推荐(0)

boost asio 学习(八) 网络基础 二进制写发送和接收
摘要:http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting- started-with-boostasio?pg=9 8. Networking basics: binary protocol sending and receiv 阅读全文

posted @ 2016-06-27 17:26 itdef 阅读(2118) 评论(0) 推荐(0)

boost asio 学习(七) 网络基础 连接器和接收器(TCP示例)
摘要:http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting- started-with-boostasio?pg=8 7. Networking basics: connectors and acceptors (TCP)我们来学 阅读全文

posted @ 2016-06-27 13:03 itdef 阅读(2246) 评论(0) 推荐(0)

上一页 1 ··· 37 38 39 40 41 42 43 44 45 46 下一页

导航