• <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 閱讀(112) 評論(0)  編輯 收藏 引用 所屬分類: C++
            国内精品久久久久久久coent| 人人妻久久人人澡人人爽人人精品 | 久久综合丝袜日本网| 人人狠狠综合88综合久久| 久久久久亚洲AV无码网站| 国内精品久久久久久不卡影院| 久久水蜜桃亚洲av无码精品麻豆| 久久国产免费| 国产精品美女久久久久AV福利| 久久婷婷国产综合精品| 国产美女亚洲精品久久久综合| 一本色道久久综合狠狠躁篇 | 久久伊人影视| 久久久亚洲精品蜜桃臀| 91精品观看91久久久久久| 久久精品欧美日韩精品| 久久综合给久久狠狠97色| 三级三级久久三级久久| 久久亚洲AV成人无码软件| 狠狠色丁香婷婷久久综合| 久久久久亚洲AV无码专区首JN | 久久精品夜色噜噜亚洲A∨| 久久强奷乱码老熟女| 久久婷婷五月综合色奶水99啪 | 91精品国产91久久久久福利| 九九久久99综合一区二区| 久久精品中文字幕久久| 国产福利电影一区二区三区久久老子无码午夜伦不| 77777亚洲午夜久久多喷| 天天久久狠狠色综合| 亚洲国产日韩欧美久久| 日韩人妻无码精品久久久不卡 | 久久国产精品99精品国产| 91久久精品国产免费直播| 中文精品久久久久人妻不卡| 久久久精品午夜免费不卡| 伊人久久精品无码二区麻豆| 91精品久久久久久无码| 久久精品人妻中文系列| 国产午夜精品久久久久九九电影| 久久强奷乱码老熟女网站|