<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[heroesjun的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/heroesjun</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; heroesjun]]></copyright><item><title><![CDATA[证券交易系统 -- 为什么要低延迟？]]></title><link>https://blog.csdn.net/heroesjun/article/details/48654269</link><guid>https://blog.csdn.net/heroesjun/article/details/48654269</guid><author>heroesjun</author><pubDate>Tue, 22 Sep 2015 14:57:27 +0800</pubDate><description><![CDATA[最近几年在证券交易领域最热门的话题不是技术分析，不是交易算法，而是高频交易和高频交易的技术核心，低延迟的交易系统。


在很久以前，所有的交易都是手工完成的。人们买卖股票就是凭证件到券商的窗口去填写表格，券商检查帐户里的股票现金无误后，就派专门跑街的人把这个单子送到他们在交易所的红马甲那里去交易。当天交易结束后，交易所把成箱的交易结果送回券商和清算公司。


如果某公司快要倒闭，你想要]]></description><category></category></item><item><title><![CDATA[高频交易到底是什么？]]></title><link>https://blog.csdn.net/heroesjun/article/details/48654235</link><guid>https://blog.csdn.net/heroesjun/article/details/48654235</guid><author>heroesjun</author><pubDate>Tue, 22 Sep 2015 14:55:14 +0800</pubDate><description><![CDATA[“高频交易”是一个挺差劲的名字。按照字面意思，任何能够以较高频率进行交易的系统都可以叫“高频交易系统”。比如说你用VBA写个小程序，连上券商给你的接口，也完全可以按毫秒级进行交易，你也可以说自己开发了一个“高频交易系统”。
　　不过，按照现在市面上的主流认知，我想大多数人概念里的高频交易系统是这样的：
　　交易指令完全由电脑发送，对市场数据的响应延时在微秒级(VBA退散)。
　　系统由专用的]]></description><category></category></item><item><title><![CDATA[一文弄懂量化交易 怎样躺着赚钱？]]></title><link>https://blog.csdn.net/heroesjun/article/details/48654185</link><guid>https://blog.csdn.net/heroesjun/article/details/48654185</guid><author>heroesjun</author><pubDate>Tue, 22 Sep 2015 14:52:43 +0800</pubDate><description><![CDATA[或许当你开始回过头研究近来A股调整的规律时，会发现一个有趣的现象：A股下跌以午后居多，特别是下午2点半左右，有投资者称："神奇的2点半"！当你还在为此惊叹时，也许早已有人将这个规律编进程序化的交易系统，通过交易大赚一笔了。

　　现在你是不是对程序化交易很好奇呢？不急，慢慢往下看。要懂程序化交易，就得先理解什么是量化交易。

　　那么，什么才是量化交易呢？

　　就拿司机开车来打个比方]]></description><category></category></item><item><title><![CDATA[vector的下标索引与at的区别]]></title><link>https://blog.csdn.net/heroesjun/article/details/48415863</link><guid>https://blog.csdn.net/heroesjun/article/details/48415863</guid><author>heroesjun</author><pubDate>Sun, 13 Sep 2015 15:18:37 +0800</pubDate><description><![CDATA[v.at(5)
//v[5]


如果vector v非空，那么at和下标索引没有区别。如果v为空，调用at会抛出异常，而operator[]索引的行为未定义。
c++标准不要求operator[]进行下标越界检查，原因是为了效率，下标越界检查会增加程序的性能开销。]]></description><category></category></item><item><title><![CDATA[在伦敦对冲基金工作多年的quant学习C++的经验]]></title><link>https://blog.csdn.net/heroesjun/article/details/48410105</link><guid>https://blog.csdn.net/heroesjun/article/details/48410105</guid><author>heroesjun</author><pubDate>Sun, 13 Sep 2015 03:34:53 +0800</pubDate><description><![CDATA[As promised, I am listing a few books and resources on C++, so you can plan a way to improve on your C++ knowledge.
I think a good start, is a good beginner book out of the following:

Sams Teach Y]]></description><category></category></item><item><title><![CDATA[C++项目中的extern "C"]]></title><link>https://blog.csdn.net/heroesjun/article/details/48329539</link><guid>https://blog.csdn.net/heroesjun/article/details/48329539</guid><author>heroesjun</author><pubDate>Thu, 10 Sep 2015 01:11:09 +0800</pubDate><description><![CDATA[引言
在用C++的项目源码中，经常会不可避免的会看到下面的代码：
#ifdef __cplusplus 
extern "C" { 
#endif 
  
/*...*/
  
#ifdef __cplusplus 
} 
#endif 

它到底有什么用呢，你知道吗？而且这样的问题经常会出现在面试or笔试中。下面我就从以下几个方面来介绍它：

1、#ifdef _cplusplus/#]]></description><category></category></item><item><title><![CDATA[一元函数对象的使用例子（续）]]></title><link>https://blog.csdn.net/heroesjun/article/details/48321389</link><guid>https://blog.csdn.net/heroesjun/article/details/48321389</guid><author>heroesjun</author><pubDate>Wed, 09 Sep 2015 19:47:00 +0800</pubDate><description><![CDATA[前文中的程序有另一种写法：
#include 
#include 

using namespace std;

template
class LessThan : public unary_function
{
public:
    LessThan(){}
    out operator()(in value)
    {
        return value < comp;
   ]]></description><category></category></item><item><title><![CDATA[一元函数对象的使用例子]]></title><link>https://blog.csdn.net/heroesjun/article/details/48282035</link><guid>https://blog.csdn.net/heroesjun/article/details/48282035</guid><author>heroesjun</author><pubDate>Tue, 08 Sep 2015 02:22:38 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
using namespace std;


template
class lessThan : public unary_function
{
public:
	lessThan(in a):value(a){}
	out operator()(in t)
	{
		return t < value;
	}
private:
	in v]]></description><category></category></item><item><title><![CDATA[c++ Allocator]]></title><link>https://blog.csdn.net/heroesjun/article/details/48226867</link><guid>https://blog.csdn.net/heroesjun/article/details/48226867</guid><author>heroesjun</author><pubDate>Sat, 05 Sep 2015 17:25:37 +0800</pubDate><description><![CDATA[Allocator是C++语言标准库中最神秘的部分之一。它们很少被显式使用，标准也没有明确出它们应该在什么时候被使用。今天的allocator与最初的STL建议非常不同，在此过程中还存在着另外两个设计－－这两个都依赖于语言的一些特性，而直到最近才在很少的几个编译器上可用。对 allocator的功能，标准似乎在一些方面追加了承诺，而在另外一些方面撤销了承诺。

这篇专栏文章将讨论你能用allo]]></description><category></category></item><item><title><![CDATA[小解C++模板特化]]></title><link>https://blog.csdn.net/heroesjun/article/details/48226793</link><guid>https://blog.csdn.net/heroesjun/article/details/48226793</guid><author>heroesjun</author><pubDate>Sat, 05 Sep 2015 17:19:22 +0800</pubDate><description><![CDATA[模板的特化（template specialization）分为两类：函数模板的特化和类模板的特化。

(1)
函数模板的特化：当函数模板需要对某些类型进行特别处理，称为函数模板的特化。例如：
template
bool IsEqual(T t1, T t2)
{
    return t1 == t2;
}

int main()
{
    char str1[] = "Hello";]]></description><category></category></item><item><title><![CDATA[C++中的类拷贝构造函数和模板拷贝构造函数]]></title><link>https://blog.csdn.net/heroesjun/article/details/48226769</link><guid>https://blog.csdn.net/heroesjun/article/details/48226769</guid><author>heroesjun</author><pubDate>Sat, 05 Sep 2015 17:16:50 +0800</pubDate><description><![CDATA[类（包括模板类）构造函数是真实的构造函数；然而模板构造函数，其实质是模板函数。两者不能混为一谈。在一个模板类中，构造函数和模板构造函数同时存在时，优先调用构造函数。只有当确切符合模板构造函数的接口时，才调用模板构造函数。编译器永远不会把模板构造函数视为构造函数，即使客户没有自己定义拷贝构造函数，编译器也会生成一个默认的拷贝构造函数，这种情况同样存在于拷贝赋值函数和模板拷贝赋值函数。请看下面的例子：]]></description><category></category></item><item><title><![CDATA[operator new在C++中的各种写法]]></title><link>https://blog.csdn.net/heroesjun/article/details/48226657</link><guid>https://blog.csdn.net/heroesjun/article/details/48226657</guid><author>heroesjun</author><pubDate>Sat, 05 Sep 2015 17:07:42 +0800</pubDate><description><![CDATA[乍一看，在C++中动态分配内存很简单：new是分配，delete是释放，就这么简单。然而，这篇文章讲得要复杂一点，并且要考虑到自定义层次。这也许对简单的程序并不重要，但对你在代码中控制内存却是十分必要的，是否能写一个自定义的分配器，某种高级内存管理表或一个特定的垃圾回收机制。

这篇文章并不是一个综合的手册，而是一个C++中各种内存分配方法的概述。它面向已经很熟悉C++语言的读者。

原生]]></description><category></category></item><item><title><![CDATA[__cdecl 、__fastcall、__stdcall]]></title><link>https://blog.csdn.net/heroesjun/article/details/48226045</link><guid>https://blog.csdn.net/heroesjun/article/details/48226045</guid><author>heroesjun</author><pubDate>Sat, 05 Sep 2015 16:23:50 +0800</pubDate><description><![CDATA[调用约定：
__cdecl __fastcall与 __stdcall，三者都是调用约定(Calling
 convention)，它决定以下内容：1)函数参数的压栈顺序，2)由调用者还是被调用者把参数弹出栈，3)以及产生函数修饰名的方法。

1、__stdcall调用约定：函数的参数自右向左通过栈传递，被调用的函数在返回前清理传送参数的内存栈，

2、_cdecl是C和C＋＋程序的缺]]></description><category></category></item><item><title><![CDATA[C++ 虚函数表解析]]></title><link>https://blog.csdn.net/heroesjun/article/details/48201403</link><guid>https://blog.csdn.net/heroesjun/article/details/48201403</guid><author>heroesjun</author><pubDate>Fri, 04 Sep 2015 00:41:24 +0800</pubDate><description><![CDATA[转自：http://blog.csdn.net/haoel/article/details/1948051

C++ 虚函数表解析
 
陈皓
http://blog.csdn.net/haoel
 
 
前言
 
C++中的虚函数的作用主要是实现了多态的机制。关于多态，简而言之就是用父类型别的指针指向其子类的实例，然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指]]></description><category></category></item><item><title><![CDATA[c++虚函数、多态性与虚表]]></title><link>https://blog.csdn.net/heroesjun/article/details/48199631</link><guid>https://blog.csdn.net/heroesjun/article/details/48199631</guid><author>heroesjun</author><pubDate>Thu, 03 Sep 2015 23:18:38 +0800</pubDate><description><![CDATA[多态

多态性就是指同样的消息被类的不同的对象接收时导致的完全不同的行为的一种现象。这里所说的消息即对类成员函数的调用。多态实质是一个函数名称的多种形态。

C++支持两种不同类型的多态：一种是编译时的多态，另一种是运行时的多态。在编译时的多态是通过静态联编实现的；而在运行时的多态则是通过动态联编实现的。

函数联编：对一个函数的调用，在编译或运行时确定将其连接到相应的函数体的代码，实]]></description><category></category></item></channel></rss>