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

            The Coder

            I am a humble coder.

              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              4 隨筆 :: 4 文章 :: 9 評論 :: 0 Trackbacks

            2006年8月11日 #

                 摘要: OpenGL 中場景進行變換,要經(jīng)歷一些過程:視圖變換 à 模型變換 à 投影變換,然后到了窗口坐標。這幾個變換開始的時候把我搞很混,這幾天整理一下。 ?????? 一般書上把這幾個變換用照相機類比,其實每個變換都是產(chǎn)生著一個 ...  閱讀全文
            posted @ 2006-08-11 22:27 TH 閱讀(5961) | 評論 (8)編輯 收藏

            2006年6月2日 #

            下面這段引文可對左值、右值加深理解。

            參考文獻:《ANSI/ISO C++ Professional Programmer's Handbook》

            lvalues and rvalues
            An object is a contiguous region of storage. An lvalue is an expression that refers to such an object. The original
            definition of lvalue referred to an object that can appear on the left-hand side of an assignment. However, const
            objects are lvalues that cannot be used in the left-hand side of an assignment. Similarly, an expression that can appear
            in the right-hand side of an expression (but not in the left-hand side of an expression) is an rvalue. For example

            #include? < string >
            using ? namespace ?std;
            int & ?f();
            void ?func()
            {
            ????
            int ?n;
            ????
            char ?buf[ 3 ];
            ????n?
            = ? 5 ;? // ?n?is?an?lvalue;?5?is?an?rvalue
            ????buf[ 0 ]? = ? ' a ' ;? // ?buf[0]?is?an?lvalue,?'a'?is?an?rvalue
            ???? string ?s1? = ? " a " ,?s2? = ? " b " ,?s3? = ?? " c " ;? // ?"a",?"b",?"c"?are?rvalues
            ????s1? = ? // ?lvalue
            ????s2? + s3;? // s2?and?s3?are?lvalues?that?are??implicitly?converted?to?rvalues
            ????s1? = ? // lvalue
            ???? string ( " z " );? // temporaries?are?rvalues
            ???? int ? * ?p? = ? new ? int ;? // p?is?an?lvalue;?'new?int'?is?an?rvalue
            ????f()? = ? 0 ;? // a?function?call?that?returns?a?reference?is?an?lvalue
            ?????s1.size();? // otherwise,?a?function?call?is?an?rvalue?expression
            }

            An lvalue can appear in a context that requires an rvalue; in this case, the lvalue is implicitly converted to an rvalue.
            An rvalue cannot be converted to an lvalue. Therefore, it is possible to use every lvalue expression in the example as
            an rvalue, but not vice versa.
            posted @ 2006-06-02 12:03 TH 閱讀(543) | 評論 (0)編輯 收藏

            2006年5月30日 #

            現(xiàn)在有個困惑,不知道博客怎么寫。既然是個專業(yè)性的博客,就不敢再這里亂寫。
            對博客定位的問題,我也思考數(shù)日。覺得博客可以有兩個分類。
            1、. 作為初學者學習的成長歷程。從hello world開始。當然,至于最后能將這個歷程走到哪里,卻不得而知了。更甚者,不知是按部就班,一步一步學,還是心血來潮,想到哪里學哪里。
            2 、 作為一個專題性的主題討論。提出一個問題,解決它,再談?wù)摚倪M。這樣的一個好處就是能對問題有清晰的認識和解決問題能力的也會提高。主題來來源可以是別人的博客上的subject,平時遇到的問題,解決問題時候出來的新問題等等。

            寫博克的形式,我想大致可以以上面兩種。
            更關(guān)心的問題是,我們在寫博客的過程中能得到什么?即既得利益所得。這也同樣是能否繼續(xù)寫下去的一個驅(qū)動力。
            可以得到的,我想可以有:1、能力積累。分析、解決問題的能力。
                   ????????????????????2、技術(shù)積累。技術(shù)知識的擴張。
                  ????????????????????????3、代碼積累。算法、編程技巧的積淀。同時可以為創(chuàng)新作積累。 
                        4、技術(shù)會友。有朋自遠方來...  



            這是我對即將開張的博客的一些想法,請多多指教。


            /---------------------------------------------------------------------------------
            時代有時代的主題,文章也有自己的主旨。偏離了方向,最終會被拋棄。  
            -----------------------------------------------------------------------------------/

            posted @ 2006-05-30 11:36 TH 閱讀(377) | 評論 (0)編輯 收藏

            2006年5月28日 #

            大家好:
            ??????? 我是TH。來自杭州,致力于C++和圖形學等方面。請多多指教。
            posted @ 2006-05-28 14:16 TH 閱讀(316) | 評論 (1)編輯 收藏

            僅列出標題  
            久久99国产精品99久久| 久久久久九国产精品| 亚洲国产精品无码久久九九 | 中文字幕无码久久精品青草| 亚洲人成无码网站久久99热国产| 精品久久久无码21p发布| 国内精品伊人久久久久AV影院| 久久国产福利免费| 久久婷婷成人综合色综合| 久久99精品国产麻豆蜜芽| 色偷偷久久一区二区三区| 久久夜色精品国产亚洲av| 久久精品aⅴ无码中文字字幕不卡| 国产香蕉97碰碰久久人人| 亚洲狠狠婷婷综合久久蜜芽| 久久www免费人成看国产片| 精品久久久久成人码免费动漫 | 亚洲精品国产综合久久一线| 国产综合久久久久| 无码人妻久久一区二区三区蜜桃| 精品久久久久久久久中文字幕| 久久综合九色综合网站| 久久一本综合| 九九久久精品国产| 久久综合九色综合欧美狠狠| 久久久精品国产sm调教网站| 久久这里只有精品首页| 一日本道伊人久久综合影| 久久久久亚洲av毛片大| 久久久久国产| 91精品国产91热久久久久福利| 99久久精品影院老鸭窝| 久久99精品久久只有精品| 一本色道久久综合亚洲精品| 久久久久久久久久久精品尤物| 久久无码国产| 91麻豆国产精品91久久久| 久久亚洲国产成人影院| 99精品国产综合久久久久五月天| 久久久久亚洲精品日久生情 | 精品多毛少妇人妻AV免费久久|