自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (10)
  • 收藏
  • 关注

原创 Build OpenJDK8 on Windows

在windows上编译open jdk8, 简单的步骤

2014-08-01 23:38:48 3286 3

原创 编译和使用 MySQL C++ Connector

记录编译编译mysql C and C++ connector 和简单访问数据库. 环境 vs2012,  mysql 5.6.13, 基于x640. 软件包mysql http://dev.mysql.com/downloads/mysql/ c connector  http://dev.mysql.com/downloads/connector/c/c++ con

2013-08-12 12:21:23 3867

原创 谁应该去读 C++ Programming Language

最近在读 Bjarne Stroustrup The C++ Programming Language 第四版. 大学的时候买过第三版的特别版, 虽然看了,但是云里雾里的, 其实看了也没啥用, 到是C++ primer 第三版让我茅塞顿开.很长很长时间以后, C++11发布了, The C++ Programming Language终于更新到了第四版. 边看, 感悟良多, Bja

2013-08-06 11:58:00 2569 1

原创 被忽略的C++11规则 : 如果显示定义了析构函数, 就不会生成默认拷贝构造函数

在C++.Programming.Language.The.4th.Edition (http://download.csdn.net/detail/salmonrun/5831855) 中,  Bjarne说(44.2.3):Generation of the copy constructor and the copy assignment is deprecated for a cla

2013-08-05 12:59:20 3115

原创 Windows上的C++轻量级IDE: QtCreator+CMake+MinGW(gcc4.8.1)

看到微软发布vs2013 preview版,依然没有完成C++11的全部功能。 gcc和clang早做到了。 一直没有在windows平台上找到合适的IDE可以使用gcc或者clang,所以对C++的实验一直止步于vs的支持状况。突然看到Qt Creator, 然后就试了以下,果然成功。 组合包含了g++4.8.1的mingw, Qt Creator可以做为优秀的轻量级IDE了。 而且

2013-06-30 08:41:34 5267

原创 vs2012编译qt5.0.1

新作一个东西,准备使用qt5,估计bug不会太多,貌似对于c++的部分,qt主要在调整结构,加强opengl的使用。 之前opengl在win7上的渲染是有bug的(应该是windows对opengl支持不给力的问题),不知道这次解决了没。如下记录编译方式,记录很有用,我自己也经常按照这个记录方式重新编译。 这次只编译amd64版本。1. Perl 5.8 or l

2013-03-31 08:10:47 1865

原创 C++数据库接口 集合

下一代的C++标准可能会实现一个通用的数据库访问接口,看看提案,挺期望的:http://isocpp.org/files/papers/n3612.pdf 这篇文章的另一大用处就是列出了C/C++已有的一些库, 我单独摘出来,不利用这个资源可惜了ODBCODBC: http://msdn.microsoft.com/en-us/library/ms714562(v=

2013-03-22 09:12:18 2809

原创 判断大端(big-endian)还是小端(little-endian)

突然想到的问题,代码中用过,不是自己实现的。这个问题有多简单,或者多难,打开vc试试#include int main(){    int a = 0x01020304;    std::cout (&a) == 0x04 ? "little endian" : "big endian") << std::endl;}比想象中简单多了!

2013-01-14 22:17:48 991 3

原创 智能指针实践,C++真不需要垃圾回收

说来也许不能相信,自己之前并没有在软件开发中大规模引入智能指针,担心效率啊,在vector里面塞满了shared_ptr,一旦遍历,想想都心痛。如果给有10万元素的vector和list中,随机删除和插入 4 byte大小的node,哪个效率更高?不要被臆想欺骗, vector 效率更高, 你信么?Bjarne 在他的 C++11 Style – A Touch of Class 中提

2013-01-07 23:20:34 2814

原创 V8 javascript engine: 用vs2012编译

记录下VS2012编译google V8的过程。开始没有弄对,还费了点时间。环境: windows8 vs2012 TortoiseSVN目标:x64 的 v8 lib1. 还是使用TortoiseSVN吧 (Git 我也就是乌龟水准,一看到google的Git和SVN命令混在一起,退缩了)从不同的源,把代码sync下来, 在checkout中输入URL of

2012-12-29 08:57:20 2318 4

原创 vs2012 中 std::regex 竟然是线程不安全的

代码crash了, crash在std::regex_match中,没有道理,看了看其它线程的call stack,逆天了,std::regex竟然不支持线程安全。查C++11关于regex的标准,对线程安全只字未提boost的regex倒是对线程问题提了下,如果定义了BOOST_HAS_THREADS,那么就是线程安全的。boost,挺神奇的。最近,主页有人说C++不难。。。不难。。

2012-12-20 21:18:10 1659 1

原创 vs2012 编译 boost 1.5.2

boost部分库需要编译后链接,比如serialization。没有必要全部编译,费时费空间。1. 必须在x86 cmd 中    cd %BOOST_ROOT%    bootstrap.bat2. 编译x86的serialization lib, 在x86 cmd中    cd %BOOST_ROOT%\libs\serialization\build

2012-12-15 11:52:19 2232

原创 vs2012 编译 Qt 4.8.4

Qt4.8.4 添加了 vs2012 的 makespace, 编译Qt方便多了。但据说对于webkit vs2012不支持,有错误。所以我在编译中去掉了webkit.  如果使用到webkit,可以试下,看看能不能简单修改代码通过编译。使用vs2012的cmd, 基于编译目标, 使用x86 或者 x64 的cmd, 修改QTDIR目录, 运行一下脚本:set QTDI

2012-12-15 08:35:06 4601 6

原创 离线安装 vs2012 update1

升级到vs2012 update1.公司的网络还行,可以顺利从网络下载安装。 回家就不行了,长城宽带,可以理解。离线安装的方法。1. vs2012 update1, 下载vsupdate_KB2707250.exe2. 在cmd 里面运行 vsupdate_KB2707250.exe /? 看到选项 /Layout 可以下载离线包的。找个网络好点的地方下载离线包,漫长。

2012-12-15 07:49:37 4109

原创 greatest common divisor introduction to algorithm 3rd, example 31.2

算法导论 第三版 31.2// greatest common divisor introduction to algorithm 3rd, example 31.2#include #include int gcd(int a, int b){    if (b == 0)    {        return a;    }    return

2012-12-12 18:46:58 767

原创 KMP (Knuth-Morris-Pratt) algorithm introduction to algorithm 3rd, example 32.4

算法导论 第三版 32.4 KMP//KMP (Knuth-Morris-Pratt) algorithm introduction to algorithm 3rd, example 32.4#include #include #include #include #include #include #include #include #in

2012-12-10 19:46:54 866

原创 optimal_binary_search_tree introduction to algorithm 3rd, example 15.5

算法导论 第三版 15.5动态规划问题// optimal_binary_search_tree introduction to algorithm 3rd, example 15.5#include #include #include #include #include #include #include #include #include

2012-12-07 14:59:38 820

原创 longest common subsequence introduction to algorithm 3rd, example 15.4

算法导论 第三版 15.4动态规划问题升级到vs2012 update1, 结果仍然没有C++11的初始化列表功能, 测试函数里面给vector添加data就比较丑了。//longest common subsequence introduction to algorithm 3rd, example 15.3#include #include #include

2012-12-06 17:41:16 842

原创 matrix_chain_multiplication, introduction to algorithm 3rd, example 15.2

算法导论 第三版 15.2动态规划问题的实现// introduction to algorithm 3rd, example 15.2#include #include #include #include #include #include #include #include "stopwatch.h"struct Matrix{

2012-12-05 18:15:23 802

原创 rod_cutting, introduction to algorithm 3rd, example 15.1

算法导论 第三版, 15.1动态规划问题的实现// introduction to algorithm 3rd, example 15.1#include #include #include #include #include "stopwatch.h"static int price_table[] ={    1, 5, 8, 9, 10, 17,

2012-12-05 18:12:30 920

原创 Windows 下的计时类 StopWatch

常用到的一个类,是修改别人的代码来的,出处忘了。使用imp形式是为了把 windows.h 从头文件中拿掉,对于需要支持多平台的代码有用。代码中为什么不用 std::unique_ptrStopwatchImp> ? 因为 unique_ptr 需要在解析头文件时知道 StopwatchImp 的定义。前置申明可以,但是得在此头文件结束之前给出类的定义,Stopwatch 做不到。

2012-12-05 17:41:06 763

RDMA_Aware_Programming.pdf

Chapter 1 RDMA Architecture Overview Chapter 2 RDMA-Aware Programming Overview Chapter 3 VPI Verbs API Chapter 4 RDMA_CM API Chapter 5 RDMA Verbs API Chapter 6 Events ...

2019-06-14

C++.Programming.Language.The.4th.Edition.2013.RBook.pdf

C++.Programming.Language.The.4th.Edition pdf version

2013-07-29

The C++ Programming Language, 4th Edition part1

The C++ Programming Language (4th Edition)Addison-Wesley ISBN 978-0321563842. May 2013. 1368 pages Publisher: Addison-Wesley Professional; 4 edition (May 19, 2013) Language: English ISBN-10: 0321563840 ISBN-13: 978-0321563842

2013-07-22

The C++ Programming Language, 4th Edition part2

The C++ Programming Language (4th Edition)Addison-Wesley ISBN 978-0321563842. May 2013. 1368 pages Publisher: Addison-Wesley Professional; 4 edition (May 19, 2013) Language: English ISBN-10: 0321563840 ISBN-13: 978-0321563842

2013-07-22

The C++ Programming Language, 4th Edition part3

The C++ Programming Language (4th Edition)Addison-Wesley ISBN 978-0321563842. May 2013. 1368 pages Publisher: Addison-Wesley Professional; 4 edition (May 19, 2013) Language: English ISBN-10: 0321563840 ISBN-13: 978-0321563842

2013-07-22

A Parallel Programming with Microsoft Visual C++.pdf

A Parallel Programming with Microsoft Visual C++.pdf

2012-12-17

The C++ Standard Library A Tutorial and Reference 2nd Edition

The C++ Standard Library A Tutorial and Reference 2nd Edition.pdf

2012-12-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除