• <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++技術中心 閱讀(597) 評論(0)  編輯 收藏 引用 所屬分類: C++ 基礎
            伊人久久大香线蕉综合影院首页 | 久久精品国产亚洲av水果派| 看全色黄大色大片免费久久久| 四虎国产精品免费久久5151| 久久久久国产视频电影| 国产精品99久久久久久宅男小说| 久久精品中文字幕一区| 久久久久国产精品| 精品久久久久久中文字幕大豆网 | 久久影院久久香蕉国产线看观看| 精品久久久久成人码免费动漫| 精品久久久久久无码专区| 久久亚洲高清综合| 国产精品久久久久无码av| 亚洲国产香蕉人人爽成AV片久久| 久久亚洲国产成人精品性色| 无码国内精品久久人妻麻豆按摩 | 午夜不卡久久精品无码免费| 久久se精品一区二区影院| 九九99精品久久久久久| 久久人妻少妇嫩草AV蜜桃| 一本色道久久88加勒比—综合| 模特私拍国产精品久久| 精品熟女少妇aⅴ免费久久| 国产99精品久久| 久久精品夜夜夜夜夜久久| 久久精品国产男包| 一本大道久久东京热无码AV| 久久成人精品| 久久高潮一级毛片免费| AAA级久久久精品无码区| 99久久精品费精品国产一区二区 | 久久精品无码一区二区无码| 久久婷婷国产剧情内射白浆| 人妻中文久久久久| 亚洲国产成人精品久久久国产成人一区二区三区综 | 国产精品国色综合久久| 久久久久高潮毛片免费全部播放| 三上悠亚久久精品| 狠狠狠色丁香婷婷综合久久五月 | 欧美国产精品久久高清|