zoukankan      html  css  js  c++  java
  • boost shared ptr


    1. 使用智能指针的例子。
    //z 2014-10-29 14:34:09 L.63 '33951 BG57IV3@XCL T892754998 .K.F2002403129[T9,L298,R11,V257]

    #include <vector>
    #include <iostream>

    #include <boost/foreach.hpp>
    #include <boost/shared_ptr.hpp>

    void testSharedPtr()
    {
        boost::shared_ptr< vector<double> > sharedPtrd(new vector<double>(100));
        BOOST_FOREACH(double& x, *sharedPtrd) x = 3.3;
        double fSum = 0.0;
        BOOST_FOREACH(double x, *sharedPtrd) fSum += x;
        cout << fSum << endl;
    }


    2. 使用 directx 2008 august 时,x64,输出汉字(中文字体) 倾斜样式,在特定的字号时调用DrawTextLine有bug,程序会崩溃。


    @IS2120#CNBLOGS.T2169364049[T1,L65,R1,V259]:备忘
    $ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $
  • 相关阅读:
    kubernetes构架及组件介绍
    二进制部署k8s
    Git
    Redis sentinel
    redis主从复制
    k8s安装
    基于Jenkins实现可腹部回滚的cicd平台
    Redis基础命令和持久化
    构建自动发现的Docker服务架构
    Redis
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745625.html
Copyright © 2011-2022 走看看