• <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++
            2021少妇久久久久久久久久| 久久精品国产一区二区三区不卡| 综合久久一区二区三区 | 久久精品国产亚洲精品| 国产精品美女久久久久av爽 | 亚洲AV无码久久寂寞少妇| 中文字幕无码久久精品青草| 久久夜色精品国产亚洲| 国产人久久人人人人爽 | 中文国产成人精品久久不卡| 粉嫩小泬无遮挡久久久久久| 国产A级毛片久久久精品毛片| 久久久久婷婷| 久久精品成人国产午夜| 久久亚洲国产成人影院| 日韩精品国产自在久久现线拍| 一本大道久久香蕉成人网| 久久久婷婷五月亚洲97号色| 国产精品成人久久久久三级午夜电影 | 99国产精品久久久久久久成人热| 免费精品久久久久久中文字幕| 久久久久亚洲av无码专区| 精品久久久无码中文字幕| 久久无码高潮喷水| 国产成人久久777777| 久久精品无码一区二区无码 | 波多野结衣AV无码久久一区| 久久se精品一区二区影院| 亚洲AV无码久久精品蜜桃| 伊人久久大香线蕉综合热线| 国产精品久久久久久久午夜片| 久久99热狠狠色精品一区| 99久久精品午夜一区二区| 色狠狠久久AV五月综合| 久久人人爽人人爽人人片AV麻烦| 久久精品国产99久久香蕉| 国产—久久香蕉国产线看观看| 99久久精品国内| 香蕉久久夜色精品国产小说| 国产精品久久久久天天影视| 国产成人精品久久二区二区|