• <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++ 技術中心

               :: 首頁 :: 聯系 ::  :: 管理
              160 Posts :: 0 Stories :: 87 Comments :: 0 Trackbacks

            公告

            鄭重聲明:本BLOG所發表的原創文章,作者保留一切權利。必須經過作者本人同意后方可轉載,并注名作者(天空)和出處(CppBlog.com)。作者Email:coder@luckcoder.com

            留言簿(27)

            搜索

            •  

            最新隨筆

            最新評論

            評論排行榜

             

            #include <conio.h>
            #include 
            <string>
            #include 
            <iostream>

            using namespace std;

            class CProduct
            {
            public:
                CProduct(
            int high,int weight, string productName);
            private:
                friend ostream
            & operator<<(ostream& os,CProduct &product);
            private:
                
            int m_high;        //
                int m_weight;      //重量
                string m_productName; //產品名稱
            }
            ;

             ostream
            & operator<<(ostream& os,CProduct &product)
             
            {
                 os
            <<"Product Name:"<<product.m_productName<<" weight:"<<product.m_weight<<" high:"<<product.m_high<<endl;

                 
            return os;
             }


             inline CProduct::CProduct(
            int high,int weight, string productName)
             
            {
                 
            this->m_high = high;
                 
            this->m_weight = weight;
                 
            this->m_productName = productName;
             }


            int main(int argc,char *argv[])
            {
                CProduct product(
            175,30,"pig");;
                cout
            <<product;

                getch();
                
            return 0;
            }


            posted on 2011-03-04 15:51 C++技術中心 閱讀(583) 評論(0)  編輯 收藏 引用 所屬分類: C++ 基礎
            久久久久人妻精品一区三寸蜜桃| 国产情侣久久久久aⅴ免费| 99精品久久精品| 99久久婷婷国产一区二区| 久久久久无码国产精品不卡| 亚洲午夜无码AV毛片久久| 精品国产乱码久久久久久1区2区 | 久久精品国产亚洲AV久| 国产精品久久久久久福利漫画 | 高清免费久久午夜精品| 人妻系列无码专区久久五月天| 精品无码久久久久国产动漫3d| 亚洲精品高清国产一久久| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 久久丫精品国产亚洲av不卡| 久久精品免费大片国产大片| 91精品国产乱码久久久久久| 亚洲精品tv久久久久| 青青青青久久精品国产h| 亚洲AV日韩AV天堂久久| 久久se精品一区二区影院| 久久国产乱子伦免费精品| 97久久国产综合精品女不卡| 久久久久久无码国产精品中文字幕| 精品久久久久久久无码| 久久久无码精品亚洲日韩按摩 | 久久这里只有精品18| 色青青草原桃花久久综合| 国产精品狼人久久久久影院| 2022年国产精品久久久久| 国内精品久久人妻互换| 国产色综合久久无码有码| 久久婷婷人人澡人人爽人人爱 | 久久久久久精品免费免费自慰| 四虎国产精品免费久久| 手机看片久久高清国产日韩| 色狠狠久久综合网| 一本色道久久99一综合| 波多野结衣中文字幕久久| 狠色狠色狠狠色综合久久| 精品久久8x国产免费观看|