• <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>

            c++實例研究

            從0開始

              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              104 隨筆 :: 0 文章 :: 20 評論 :: 0 Trackbacks
            /*
              Name: temporary varity copy consturctor
              Copyright: 
              Author: elprup
              Date: 08/10/10 09:18
              Description: 
            */

            #include 
            <cstdlib>
            #include 
            <iostream>
            using namespace std;

            class bar;

            class foo
            {
            public:
                foo():pb(
            0){}
                
            // do this if not define operator bar &
                foo(bar& b){cout<<"copy constructor"<<endl;}
                foo
            & operator=(const foo& f){cout<<"operator equal"<<endl; return *this;}
                
            // if define function below, skip copy constructor and oprator= foo
                foo& operator=(const bar& b){cout<<"bar operator equal"<<endl; return *this;}
            private:
                bar 
            *pb;
            };

            class bar
            {
            };

            int main()
            {
                foo f;
                f 
            = b;
                
                system(
            "PAUSE");
                
            return 0;
            }
            posted on 2010-10-08 11:40 elprup 閱讀(296) 評論(0)  編輯 收藏 引用 所屬分類: c++實例
            精品久久久无码中文字幕天天 | 欧美成人免费观看久久| 色婷婷噜噜久久国产精品12p| 久久亚洲AV无码精品色午夜麻豆| 精品久久亚洲中文无码| 91亚洲国产成人久久精品| 亚洲精品国精品久久99热| 久久天天躁狠狠躁夜夜avapp| 国产日韩欧美久久| 久久国产亚洲精品无码| 国产精品久久新婚兰兰| 久久婷婷人人澡人人| 久久香蕉综合色一综合色88| 久久综合偷偷噜噜噜色| 久久国产精品无码网站| 国产精品无码久久久久久| 国内精品久久久久影院亚洲| 久久人人爽人人爽人人片AV东京热| 久久精品国产亚洲av麻豆小说 | 久久久久亚洲AV无码网站| 武侠古典久久婷婷狼人伊人| 国产亚州精品女人久久久久久| 亚洲国产精品一区二区久久hs| 久久亚洲国产成人影院| 麻豆久久| 久久久久久免费视频| 中文字幕亚洲综合久久菠萝蜜| 久久国产热这里只有精品| 久久中文字幕一区二区| 久久国产精品久久| 精品国产乱码久久久久久郑州公司 | 久久强奷乱码老熟女网站| 久久久久久久综合综合狠狠| 国产成人精品久久亚洲| 久久香蕉一级毛片| 精品久久久久中文字幕一区| 久久久久女教师免费一区| 亚洲精品97久久中文字幕无码| 无码8090精品久久一区| 中文字幕精品久久| 久久久久亚洲AV无码网站|