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]:备忘
    $ € ₤ ₭ ₪ ₩ ₮ ₦ ₱ ฿ ₡ ₫ ﷼ ¥ ﷼ ₫ ₡ ฿ ₱ ₦ ₮ ₩ ₪ ₭ ₤ € $
  • 相关阅读:
    2017-2018-1 20145237、20155205、20155218实验一 开发环境的熟悉
    作业三总结
    作业二总结
    作业总结1
    自我介绍
    计科16-4刘悦
    第九次作业
    作业八
    作业七
    作业六
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745625.html
Copyright © 2011-2022 走看看