锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品国产综合区久久久久久,久久人人爽人人人人爽AV,久久99国产精品久久久http://m.shnenglu.com/luke/zh-cnThu, 03 Jul 2025 07:44:38 GMTThu, 03 Jul 2025 07:44:38 GMT60c++鏍囧噯搴撲腑endl鐨勫疄鐜?/title><link>http://m.shnenglu.com/luke/archive/2009/04/01/78572.html</link><dc:creator>鍗㈠厠</dc:creator><author>鍗㈠厠</author><pubDate>Wed, 01 Apr 2009 07:15:00 GMT</pubDate><guid>http://m.shnenglu.com/luke/archive/2009/04/01/78572.html</guid><wfw:comment>http://m.shnenglu.com/luke/comments/78572.html</wfw:comment><comments>http://m.shnenglu.com/luke/archive/2009/04/01/78572.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/luke/comments/commentRss/78572.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/luke/services/trackbacks/78572.html</trackback:ping><description><![CDATA[浠ュ墠涓鐩存病鏈夊叧蹇?jī)std::endl鐨勫伐浣滄満鍒訛紝鏈榪戠獊鐒舵兂涓紿ョ┒绔燂紝浜庢槸涓嬭澆浜?jiǎn)sgi鐨剆tl(<a >http://www.sgi.com/tech/stl/</a>)瀹炵幇,<br>浜庢槸鎭嶇劧澶ф?zhèn)熷Q屽鍏跺疄鐜拌呯湡鏄暚浣┿?br><br>鍦ㄦ枃浠禣stream涓璫lass basic_ostream 鏈夊涓嬫垚鍛樺嚱鏁幫細(xì)<br><br> basic_ostream& operator<< (basic_ostream& (*__f)(basic_ostream&))<br>    { return __f(*this); }<br><br> basic_ostream& operator<< (_Basic_ios& (*__f)(_Basic_ios&))<br>    { __f(*this); return *this; }<br><br> basic_ostream& operator<< (ios_base& (*__f)(ios_base&))<br>    { __f(*this); return *this; }<br><br>鐒跺悗鏈夊涓嬪叏灞鍑芥暟錛?br>template <class _CharT, class _Traits><br>inline basic_ostream<_CharT, _Traits>&<br>endl(basic_ostream<_CharT, _Traits>& __os) {<br>  __os.put(__os.widen('\n'));<br>  __os.flush();<br>  return __os;<br>}<br><br>鍙鍘熸潵鎴戜滑緇忓父浣跨敤鐨刢out<<.....<<endl涓殑endl绔熺劧鏄竴涓嚱鏁版寚閽堬紝鐢辨鎴戜滑榪樺彲浠ユ壘鍒板涓嬪畾涔夛細(xì)<br><br>// basefield manipulators, section 27.4.5.3<br>inline ios_base& dec(ios_base& __s)<br>  { __s.setf(ios_base::dec, ios_base::basefield); return __s; }<br><br>inline ios_base& hex(ios_base& __s) <br>  { __s.setf(ios_base::hex, ios_base::basefield); return __s; }<br><br>inline ios_base& oct(ios_base& __s)<br>  { __s.setf(ios_base::oct, ios_base::basefield); return __s; }<br><br>鍘熸潵榪欎簺鎴戜滑緇忓父瑙佸埌鐨凜++嫻佽緭鍑烘牸寮忕灞呯劧閮芥槸涓浜涘嚱鏁幫紝閮芥槸閫氳繃閲嶈澆<<鎿嶄綔絎︽潵瀹炵幇鐨勩?br><br><img src ="http://m.shnenglu.com/luke/aggbug/78572.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/luke/" target="_blank">鍗㈠厠</a> 2009-04-01 15:15 <a href="http://m.shnenglu.com/luke/archive/2009/04/01/78572.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>boost 涓殑noncopyablehttp://m.shnenglu.com/luke/archive/2009/03/13/76411.html鍗㈠厠鍗㈠厠Fri, 13 Mar 2009 03:00:00 GMThttp://m.shnenglu.com/luke/archive/2009/03/13/76411.htmlhttp://m.shnenglu.com/luke/comments/76411.htmlhttp://m.shnenglu.com/luke/archive/2009/03/13/76411.html#Feedback0http://m.shnenglu.com/luke/comments/commentRss/76411.htmlhttp://m.shnenglu.com/luke/services/trackbacks/76411.htmlclass noncopyable
  {
   protected:
      noncopyable() {}
      ~noncopyable() {}
   private:  // emphasize the following members are private
      noncopyable( const noncopyable& );
      const noncopyable& operator=( const noncopyable& );
  };

榪欓噷鐨勮璁℃濇兂鏄瀛愮被緇ф壙錛屼絾鏄樆姝㈠瓙綾昏皟鐢ㄨ祴鍊煎拰copy鏋勯犲嚱鏁幫紝鏈変粈涔堢敤鍛紵
鍐欎唬鐮佺殑鏃跺欐垜緇忓父鍠滄鐢╯ingleton妯″紡錛屾瘮濡傞偅浜涘伐鍘傜被錛岀鐞嗚呯被涔嬬被鐨勶紝浣嗘槸鍐欒繖浜?br>singleton鐨勬椂鍊欏綋鐒舵槸甯屾湜鍏ㄥ眬鍙湁涓涓紝鑰屼笖涓嶅笇鏈涘埆浜哄湪鐢ㄧ殑鏃跺欏張鑷繁鍒涢犱竴涓紝寰寰
灝辮姣忓啓涓涓猻ingleton綾誨氨瑕佸湪綾葷殑declaration涓妸瀹冧滑鐨勬瀯閫犲嚱鏁幫紝璧嬪煎嚱鏁幫紝鏋愭瀯鍑芥暟錛宑opy鏋勯犲嚱鏁伴殣钘忓埌
private鎴栬卲rotected涔嬩腑錛岃繖鏍風(fēng)湡鐨勫緢绱?br>  鐜板湪濂戒簡(jiǎn)錛屽彧瑕佽榪欎簺singleton鐩存帴緇ф壙noncopyable灝眔k浜?jiǎn)銆傝繖鏍瘋嚦灝戝彲浠ヤ笉鐢ㄥ鍐欒祴鍊煎拰copy鏋勯?br>鍑芥暟浜?jiǎn)锛涙瀯閫犲拰鏋愭瀯鍑芥暟鐪嬫儏鍐佃屽畾浜?jiǎn)銆?br>
class noncopyable鐨勫熀鏈濇兂鏄妸鏋勯犲嚱鏁板拰鏋愭瀯鍑芥暟璁劇疆protected鏉冮檺錛岃繖鏍峰瓙綾誨彲浠ヨ皟鐢紝浣嗘槸澶栭潰鐨勭被涓嶈兘璋冪敤錛?br>閭d箞褰撳瓙綾婚渶瑕佸畾涔夋瀯閫犲嚱鏁扮殑鏃跺欎笉鑷充簬閫氫笉榪囩紪璇戙備絾鏄渶鍏抽敭鐨勬槸noncopyable鎶奵opy鏋勯犲嚱鏁板拰copy璧嬪煎嚱鏁板仛鎴愪簡(jiǎn)
private錛岃繖灝辨剰鍛崇潃闄ら潪瀛愮被瀹氫箟鑷繁鐨刢opy鏋勯犲拰璧嬪煎嚱鏁幫紝鍚﹀垯鍦ㄥ瓙綾繪病鏈夊畾涔夌殑鎯呭喌涓嬶紝澶栭潰鐨勮皟鐢ㄨ呮槸涓嶈兘澶熼氳繃
璧嬪煎拰copy鏋勯犵瓑鎵嬫鏉ヤ駭鐢熶竴涓柊鐨勫瓙綾誨璞$殑銆備婦涓畝鍗曠殑渚嬪瓙錛?br>class Test 錛?public noncopyable
{
};

void main()
{
   Test a,c;
   Test b(a);  ///<------錛?錛?error

   c = a;     ///<------(2) error
}

濡傛灉Test綾繪病鏈夌戶鎵?noncopyable,閭d箞錛?錛夊拰錛?錛夐兘鍙互閫氳繃緙栬瘧錛屼絾鏄竴鏃est緇ф壙浜?jiǎn)noncopyable錛屽垯(1)鍜岋紙2錛夐兘閫氫笉榪?br>緙栬瘧錛屼粠鑰屽彲浠ラ槻姝㈣皟鐢ㄨ呭啓涓浜涢敊璇殑浠g爜錛岃繖涓嶆鏄垜浠仛singleton瀵硅薄鎵闇瑕佺殑鍚楋紵





鍗㈠厠 2009-03-13 11:00 鍙戣〃璇勮
]]>
service 鍦╲ista鍜寃indows2008涓嬩笉宸ヤ綔http://m.shnenglu.com/luke/archive/2008/10/13/63907.html鍗㈠厠鍗㈠厠Mon, 13 Oct 2008 09:06:00 GMThttp://m.shnenglu.com/luke/archive/2008/10/13/63907.htmlhttp://m.shnenglu.com/luke/comments/63907.htmlhttp://m.shnenglu.com/luke/archive/2008/10/13/63907.html#Feedback0http://m.shnenglu.com/luke/comments/commentRss/63907.htmlhttp://m.shnenglu.com/luke/services/trackbacks/63907.html  鍋氫簡(jiǎn)濡備笅鍑犱釜嫻嬭瘯錛?br>  錛?錛夋妸ServiceMain寮濮嬮儴鍒嗗仛鎴愪竴涓猚onsole紼嬪簭錛岃繍琛孫K錛岃繖璇存槑涓昏閮ㄥ垎浠g爜閫昏緫娌℃湁闂銆?br>  錛?錛夊幓鎺塖erviceMain()涓殑澶ч儴鍒嗗姛鑳戒唬鐮侊紝鍋氫竴涓畝鍗曠殑service錛岃繍琛孫K錛岃繖璇存槑鍘熸潵鐨剆ervice瀹夎鍜屽惎鍔ㄩ儴鍒嗕唬鐮佷篃娌℃湁闂銆?br>  錛?錛夊垎姝ユ帓闄ゅ悇涓猟ll銆?br>  鏈鍚庡彂鐜板鑷存棤娉曞惎鍔ㄧ殑緗瓉紲擱灞呯劧鏄痩ibmysql.dll錛屾垜濡傛灉鍦ㄧ▼搴忎腑灞忚斀鎺夋墍鏈塵ysql鐨勮皟鐢紝絳変簬紼嬪簭鍚姩鐨勬椂鍊欎笉鍔犺澆libmysql.dll,閭d箞灝卞彲浠ラ『鍒╁惎鍔紝鎺ョ潃鏇存崲鍒版渶鏂扮殑libmysql.dll錛堢増鏈?.0.67錛夛紝浠嶇劧鏄惎鍔ㄤ笉鎴愬姛錛涘悗鏉ュ垏鎹㈠埌涓涓悓浜嬬殑鑰佺増鏈琹ibmysql.dll錛屽眳鐒跺彲浠ュ惎鍔ㄦ垚鍔熴?.0.67鐗堟湰libmysql.dll 錛坥pt錛夌殑澶у皬鏄?M澶氾紝鑰屾垜鍚屼簨鐨勯偅涓猯ibmysql.dll鎵?M澶氾紝闅鵑亾浠栫殑鐗堟湰鏄痬ysql4.x ?
  絀剁珶鏄粈涔堝師鍥犲鑷磋繖涓棶棰樼殑錛?br>



鍗㈠厠 2008-10-13 17:06 鍙戣〃璇勮
]]>
国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 国内精品伊人久久久久777| 深夜久久AAAAA级毛片免费看| 亚洲国产精品综合久久一线| 久久人人添人人爽添人人片牛牛| 久久天天躁狠狠躁夜夜avapp| 国产精品美女久久久久网| 欧美性猛交xxxx免费看久久久| 亚洲AV无码久久精品成人| 精品国产91久久久久久久| 亚洲?V乱码久久精品蜜桃| 色婷婷久久综合中文久久蜜桃av| 国产精品VIDEOSSEX久久发布| 伊人久久综合无码成人网| 色综合久久中文色婷婷| 亚洲v国产v天堂a无码久久| 久久伊人精品青青草原高清| 久久精品国产亚洲AV蜜臀色欲| 99久久伊人精品综合观看| 日韩人妻无码精品久久免费一| 色婷婷综合久久久久中文字幕 | 国内精品久久久久久久97牛牛| 久久精品亚洲乱码伦伦中文| 久久久噜噜噜久久熟女AA片| 亚洲国产视频久久| 久久人人爽人人爽人人片AV麻豆 | 久久国产香蕉视频| 久久精品一区二区三区不卡| 中文字幕无码免费久久| 久久久高清免费视频| 久久se这里只有精品| 久久精品无码一区二区日韩AV| 色综合久久久久网| Xx性欧美肥妇精品久久久久久| 日本三级久久网| 国产视频久久| 亚洲伊人久久成综合人影院| 中文字幕久久亚洲一区| 狠狠色婷婷久久一区二区| 亚洲日本va中文字幕久久| 伊人久久精品无码av一区|