• <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++ 基礎
            婷婷伊人久久大香线蕉AV| 国内精品久久久久| 亚洲精品WWW久久久久久| 国产成人综合久久精品尤物| 很黄很污的网站久久mimi色| 模特私拍国产精品久久| 久久精品国产亚洲αv忘忧草 | 久久久久精品国产亚洲AV无码| 亚洲国产精品热久久| 大蕉久久伊人中文字幕| 久久久WWW免费人成精品| 久久久久波多野结衣高潮| 久久久免费精品re6| 99999久久久久久亚洲| 久久夜色精品国产噜噜麻豆| 久久国语露脸国产精品电影| 伊人久久大香线蕉AV色婷婷色| 久久99精品久久久大学生| 精品久久久中文字幕人妻| 亚洲AV无码1区2区久久| 久久人人妻人人爽人人爽| 久久久精品2019免费观看| 国产偷久久久精品专区| 久久精品中文闷骚内射| 久久99精品国产99久久6男男| 久久综合噜噜激激的五月天| 精品久久一区二区三区| AV无码久久久久不卡蜜桃| 97久久国产亚洲精品超碰热| 麻豆精品久久精品色综合| 久久久WWW成人| 曰曰摸天天摸人人看久久久| 精品欧美一区二区三区久久久| 久久久久国色AV免费看图片| 国产美女久久久| 久久亚洲AV无码西西人体| 91久久精品91久久性色| 久久久久亚洲av成人网人人软件| 亚洲成色999久久网站| 狠狠色婷婷久久一区二区三区| yy6080久久|