• <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 閱讀(117) 評論(0)  編輯 收藏 引用 所屬分類: C++
            99久久人人爽亚洲精品美女| 色婷婷久久久SWAG精品| 欧洲国产伦久久久久久久| 99久久婷婷国产一区二区| 欧美久久久久久午夜精品| 无码AV波多野结衣久久| 久久久久国产精品麻豆AR影院| 一本色道久久99一综合| 精品一久久香蕉国产线看播放| 伊人久久大香线蕉av不变影院| 人妻无码中文久久久久专区| 中文字幕久久精品 | 久久精品国产69国产精品亚洲| 亚洲国产精品综合久久网络 | 久久精品视频网| 欧美国产成人久久精品| 亚洲国产日韩欧美久久| 久久亚洲精精品中文字幕| 香蕉久久AⅤ一区二区三区| 久久精品人成免费| 久久精品国产亚洲AV电影| 国产精品VIDEOSSEX久久发布| 久久精品嫩草影院| 77777亚洲午夜久久多人| 国产精品美女久久久久AV福利| 久久无码中文字幕东京热| 久久电影网| 一本一道久久精品综合| 国产V综合V亚洲欧美久久| 久久国产精品国产自线拍免费 | 久久久WWW成人| 国产精品日韩深夜福利久久| 国产精品久久自在自线观看| 精品国产一区二区三区久久| 亚洲中文字幕久久精品无码喷水| 久久青青草原精品国产软件| 国产精品成人久久久久三级午夜电影| 国产精品久久久久jk制服| 国产色综合久久无码有码| 久久久久久免费视频| 欧美噜噜久久久XXX|