• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            r2100

              C++博客 :: 首頁 :: 聯系 :: 聚合  :: 管理
              8 Posts :: 9 Stories :: 2 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(3)

            我參與的團隊

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

             1 // boost.cpp : 定義控制臺應用程序的入口點。
             2 //
             3 
             4 #include "stdafx.h"
             5 
             6 #include <iostream>  
             7 #include <boost/thread/thread.hpp>  
             8 #include <boost/bind.hpp>
             9 #include <boost/function.hpp>
            10 void hello(int i, int j)  
            11 {  
            12     std::cout << "Hello world, I'm a thread!" << std::endl;  
            13     std::cout<< i+j << std::endl;
            14 }  
            15 
            16 class A
            17 {
            18 public:
            19     void hello(int i, int j){
            20         std::cout<<i+j<<std::endl;
            21     }
            22 };
            23 
            24 int _tmain(int argc, _TCHAR* argv[])
            25 {
            26     //boost::thread thrd(&hello);  
            27     //thrd.join(); 
            28 // bind
            29 //     A a;
            30 //     boost::bind(&A::hello, a, 1, 2)(1,2);
            31 //     boost::function<void(int,int)> f;
            32 
            33 // function
            34 //     boost::function<void(int,int)> f;
            35 //     f = hello;
            36 //     f(1,2);
            37 
            38     A a;
            39     boost::function<void(A,intint)> cf;
            40     cf=&A::hello;
            41     cf(a,1,2);
            42 
            43 // bind & function    
            44 //     boost::function<void(int,int)> f;
            45 //     f=boost::bind(hello,_1,_2);
            46 //     f(1,1);
            47 // 
            48 //     A a;
            49 //     boost::function<void(int, int)> cf;
            50 //     cf=boost::bind(&A::hello,a,_1,_2);
            51 //     cf(1,1);
            52 // 
            53 //     boost::function<>
            54 
            55     return 0;
            56 }
            57 
            posted on 2015-06-28 23:25 r2100 閱讀(115) 評論(0)  編輯 收藏 引用 所屬分類: C++
            国产免费久久精品99久久| 精品久久人人爽天天玩人人妻| 亚洲精品午夜国产va久久| 亚洲午夜无码AV毛片久久| 久久精品国产亚洲AV久 | 国产成人精品久久综合| 久久久精品国产Sm最大网站| 久久久久久国产精品免费免费| 国内精品伊人久久久久777| 国内精品久久久久久野外| 伊人精品久久久久7777| 久久久亚洲欧洲日产国码aⅴ| 久久久91人妻无码精品蜜桃HD| 一本色道久久88—综合亚洲精品| 99久久99久久精品国产| 久久亚洲精精品中文字幕| 久久夜色精品国产www| 91精品国产高清久久久久久io| 欧美精品九九99久久在观看| 久久99精品国产麻豆宅宅| 久久精品国产亚洲AV影院 | 香港aa三级久久三级老师2021国产三级精品三级在 | 亚洲欧洲久久av| 精品久久久久久久中文字幕 | 精品国产一区二区三区久久蜜臀| 久久免费的精品国产V∧| 思思久久好好热精品国产| 亚洲精品成人网久久久久久| 国产香蕉97碰碰久久人人| 久久福利青草精品资源站| 97精品国产91久久久久久| 国产V亚洲V天堂无码久久久| 7777精品伊人久久久大香线蕉| 色综合久久天天综线观看| 久久国产免费直播| 久久久久99精品成人片牛牛影视| 久久精品九九亚洲精品天堂 | 亚洲国产精品无码久久久久久曰 | 99久久免费只有精品国产| 爱做久久久久久| 精品乱码久久久久久夜夜嗨|