锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品国产精品青草,欧美黑人又粗又大久久久,国产精品久久久久久久app http://www.shnenglu.com/keyws/category/2424.htmlC++ && keyWordSpotting zh-cn Thu, 22 May 2008 09:19:01 GMT Thu, 22 May 2008 09:19:01 GMT 60 銆愬師銆戣繍綆楃閲嶈澆涓庡悕瀛楃┖闂寸殑鍥版儜 http://www.shnenglu.com/keyws/archive/2006/08/16/11304.htmlkeyws keyws Wed, 16 Aug 2006 13:09:00 GMT http://www.shnenglu.com/keyws/archive/2006/08/16/11304.html http://www.shnenglu.com/keyws/comments/11304.html http://www.shnenglu.com/keyws/archive/2006/08/16/11304.html#Feedback 0 http://www.shnenglu.com/keyws/comments/commentRss/11304.html http://www.shnenglu.com/keyws/services/trackbacks/11304.html
聽聽聽瀛︿範鏁版嵁緇撴瀯錛岀敤鍒頒簡杈撳叆杈撳嚭榪愮畻絎﹂噸杞斤紝緇撴灉緙栬瘧涔嬩笅錛岄敊璇噸閲嶏紝錛岄殢鍗沖仠姝㈠涔犺繘搴︼紝榪芥煡紲告簮錛屽湪鑺辮垂宸ㄥぇ鑴戝姏涓庢椂闂存垚鏈箣鍚庯紝緇堜簬鐭ヨ嚜宸遍敊璇箣鎵鍦紝瀹氫綅浜庡悕瀛楃┖闂翠箣鍥版壈銆備負鐗㈣鏁欒錛屽啓涓綆鍖栫増鏈褰?/span>
debug
榪囩▼濡備笅錛岃紺鴻嚜宸便?br />
闂 錛?br />聽聽聽
聽聽聽鏈夊涓嬩袱涓唬鐮佹枃浠訛細 聽聽聽// 20060816_operator.cxx
聽1 聽#include聽 < iostream > 聽2 聽using 聽 namespace 聽std; 聽3 聽#include聽 " 20060816_operator.h " 聽4 聽int 聽main( int 聽argc,聽 char * 聽argv[]) 聽5 聽{ 聽6 聽聽聽聽聽 const 聽std:: string 聽GHH( " GuoHonghua " ); 聽7 聽聽聽聽聽Honghua聽ghh(GHH); 聽8 聽聽聽聽聽cout聽 << 聽ghh聽 << 聽endl; 聽9 聽聽聽聽聽 return 聽 0 ; 10 聽}
聽聽聽
// 20060816_operator.h
聽1 聽#ifndef聽_20060816_OPERATOR_GHH_ 聽2 聽#define 聽_20060816_OPERATOR_GHH_聽聽聽聽1 聽3 聽聽4 聽// 聽Author聽:聽GuoHonghua 聽5 聽// 聽Date聽:聽2006.08.16 聽6 聽// 聽File聽:聽20060816_operator.h 聽7 聽聽8 聽#include聽 < iostream > 聽9 聽#include聽 < string > 10 聽class 聽Honghua 11 聽{ 12 聽聽聽聽聽friend聽std::ostream & 聽 operator << (std::ostream & 聽os,聽 const 聽Honghua & 聽ghh); 13 聽public : 14 聽聽聽聽聽Honghua( const 聽std:: string & 聽ghh)聽:聽_ghh(ghh) 15 聽聽聽聽聽{ 16 聽聽聽聽聽} 17 聽18 聽private : 19 聽聽聽聽聽std:: string 聽_ghh; 20 聽}; 21 聽22 聽std::ostream & 聽 operator << (std::ostream & 聽os,聽 const 聽Honghua & 聽ghh) 23 聽{ 24 聽聽聽聽聽os聽 << 聽ghh._ghh; 25 聽聽聽聽聽 return 聽os; 26 聽} 27 聽28 聽#endif 聽 // 聽end聽of聽_20060816_OPERATOR_GHH_
鐢ㄤ笂闈袱涓枃浠跺緩绔嬪伐紼嬶紝 vc6.0 涓嬬紪璇戜細鍑洪敊銆傛姤鍛婂涓嬶細
--------------------Configuration: 20060816_operator - Win32 Debug--------------------
Compiling...
20060816_operator.cxx
f:\ghh_project\cxxdetail\20060816_operator.h(24) : error C2248: '_ghh' : cannot access private member declared in class 'Honghua'
聽聽聽聽聽聽聽 f:\ghh_project\cxxdetail\20060816_operator.h(19) : see declaration of '_ghh'
F:\ghh_project\CxxDetail\20060816_operator.cxx(8) : error C2593: 'operator <<' is ambiguous
Error executing cl.exe.
聽
20060816_operator.exe - 2 error(s), 0 warning(s)瑙e喅 : 聽聽聽
1錛?span style="FONT: 7pt 'Times New Roman'">聽 璋冩暣鍚嶅瓧絀洪棿澹版槑鍜岃嚜瀹氫箟澶存枃浠剁殑嬈″簭錛屽涓嬶細
1 聽#include聽 < iostream > 2 聽#include聽 " 20060816_operator.h " 3 聽using 聽 namespace 聽std; 4 聽int 聽main( int 聽argc,聽 char * 聽argv[]) 5 聽
2錛?span style="FONT: 7pt 'Times New Roman'">聽 鎶婄被瀹氫箟浜庢爣鍑嗗悕瀛椾箣鍐咃紝 20060816_operator.h 鏂囦歡淇敼濡備笅錛堜笉鎺ㄨ崘錛?br />
聽1 聽#ifndef聽_20060816_OPERATOR_GHH_ 聽2 聽#define 聽_20060816_OPERATOR_GHH_聽聽聽聽1 聽3 聽聽4 聽// 聽Author聽:聽GuoHonghua 聽5 聽// 聽Date聽:聽2006.08.16 聽6 聽// 聽File聽:聽20060816_operator.h 聽7 聽聽8 聽#include聽 < iostream > 聽9 聽#include聽 < string > 10 聽namespace 聽std 11 聽{ 12 聽聽聽聽聽 class 聽Honghua 13 聽聽聽聽聽{ 14 聽聽聽聽聽聽聽聽聽friend聽std::ostream & 聽 operator << (std::ostream & 聽os,聽 const 聽Honghua & 聽ghh); 15 聽聽聽聽聽 public : 16 聽聽聽聽聽聽聽聽聽Honghua( const 聽std:: string & 聽ghh)聽:聽_ghh(ghh) 17 聽聽聽聽聽聽聽聽聽{ 18 聽聽聽聽聽聽聽聽聽} 19 聽聽聽聽聽聽聽聽聽 20 聽聽聽聽聽 private : 21 聽聽聽聽聽聽聽聽聽std:: string 聽_ghh; 22 聽聽聽聽聽}; 23 聽聽聽聽聽 24 聽聽聽聽聽 25 聽聽聽聽聽std::ostream & 聽 operator << (std::ostream & 聽os,聽 const 聽Honghua & 聽ghh) 26 聽聽聽聽聽{ 27 聽聽聽聽聽聽聽聽聽os聽 << 聽ghh._ghh; 28 聽聽聽聽聽聽聽聽聽 return 聽os; 29 聽聽聽聽聽} 30 聽} 31 聽#endif 聽 // 聽end聽of聽_20060816_OPERATOR_GHH_ 聽
3錛?span style="FONT: 7pt 'Times New Roman'">聽 浣跨敤澶存枃浠?/span>iostream.h 浠f浛 iostream, 姣旇緝钀藉悗鐨勬柟寮忥紙涓嶆帹鑽?/span>! 錛?br />
聽1 聽// 聽20060816_operator.cxx 聽2 聽// 聽#include聽<iostream> 聽3 聽#include聽 < iostream.h > 聽4 聽#include聽 < iostream.h > 聽5 聽#include聽 " 20060816_operator.h " 聽6 聽int 聽main( int 聽argc,聽 char * 聽argv[]) 聽7 聽{ 聽8 聽聽聽聽聽 const 聽std:: string 聽GHH( " GuoHonghua " ); 聽9 聽聽聽聽聽Honghua聽ghh(GHH); 10 聽聽聽聽聽cout聽 << 聽ghh聽 << 聽endl; 11 聽聽聽聽聽 return 聽 0 ; 12 聽} 聽
聽1 聽// 聽20060816_operator.h 聽2 聽#ifndef聽_20060816_OPERATOR_GHH_ 聽3 聽#define 聽_20060816_OPERATOR_GHH_聽聽聽聽1 聽4 聽聽5 聽// 聽Author聽:聽GuoHonghua 聽6 聽// 聽Date聽:聽2006.08.16 聽7 聽// 聽File聽:聽20060816_operator.h 聽8 聽// 聽#include聽<iostream> 聽9 聽#include聽 < iostream.h > 10 聽#include聽 < string > 11 聽12 聽class 聽Honghua 13 聽{ 14 聽聽聽聽聽friend聽ostream & 聽 operator << (ostream & 聽os,聽 const 聽Honghua & 聽ghh); 15 聽public : 16 聽聽聽聽聽Honghua( const 聽std:: string & 聽ghh)聽:聽_ghh(ghh) 17 聽聽聽聽聽{ 18 聽聽聽聽聽} 19 聽聽聽聽聽 20 聽private : 21 聽聽聽聽聽std:: string 聽_ghh; 22 聽}; 23 聽24 聽25 聽ostream & 聽 operator << (ostream & 聽os,聽 const 聽Honghua & 聽ghh) 26 聽{ 27 聽聽聽聽聽os聽 << 聽ghh._ghh; 28 聽聽聽聽聽 return 聽os; 29 聽} 30 聽31 聽#endif 聽 // 聽end聽of聽_20060816_OPERATOR_GHH_
4錛?span style="FONT: 7pt 'Times New Roman'">聽 浠諱綍鏃跺欓兘涓嶄嬌鐢?/span>using namespace 澹版槑錛佽繖鏄彧闇瑕佷慨鏀?/span>20060816_operator.cxx 鏂囦歡濡備笅錛?br />
聽1 聽#include聽 < iostream > 聽2 聽#include聽 " 20060816_operator.h " 聽3 聽int 聽main( int 聽argc,聽 char * 聽argv[]) 聽4 聽{ 聽5 聽聽聽聽聽 // 聽const聽string聽GHH("GuoHonghua"); 聽6 聽聽聽聽聽 const 聽std:: string 聽GHH( " GuoHonghua " ); 聽7 聽聽聽聽聽Honghua聽ghh(GHH); 聽8 聽聽聽聽聽 // 聽cout聽<<聽ghh聽<<聽endl; 聽9 聽聽聽聽聽std::cout聽 << 聽ghh聽 << 聽std::endl; 10 聽聽聽聽聽 return 聽 0 ; 11 聽}
浣撲細 錛?br />聽聽聽鍚嶅瓧絀洪棿鏈潵灝辨槸涓轟簡瑙e喅鍚嶅瓧鍐茬獊闂鑰屽紩鍏ワ紝浠ヤ嬌鏍囧噯搴撲笉鍙楀鐣屽獎鍝嶃傚湪榪欎釜鎰忎箟涓婃潵璇達紝using namespace std; 涓嶆槸鍙互闅忔剰浣跨敤鐨勮鍙ワ紝搴旇鑰冭檻鍒板畠鐨勪綅緗紼嬪簭鐨勫彲鑳藉獎鍝嶏紝鑰屾渶褰誨簳鐨勬潨緇濋敊璇殑瑙e喅鍔炴硶鏄湪浠諱綍鏃跺欎換浣曟儏鍐典笅閮戒笉浣跨敤姝よ鍙ワ紒
]]>銆愬師銆戜竴涓叧浜庡嚱鏁版ā鐗堢紪璇戦敊璇殑璋冭瘯璁板綍 http://www.shnenglu.com/keyws/archive/2006/08/12/11154.htmlkeyws keyws Sat, 12 Aug 2006 12:32:00 GMT http://www.shnenglu.com/keyws/archive/2006/08/12/11154.html http://www.shnenglu.com/keyws/comments/11154.html http://www.shnenglu.com/keyws/archive/2006/08/12/11154.html#Feedback 0 http://www.shnenglu.com/keyws/comments/commentRss/11154.html http://www.shnenglu.com/keyws/services/trackbacks/11154.html
聽聽聽聽聽聽
鍒濆鍑芥暟妯$増錛屼竴涓?/span>
bug鈥?/span>
璁╀亢閮侀椃浜嗕竴鐣紝鎯充簡涓涓皬鏃墮兘娌℃湁鎯沖嚭鎵浠ョ劧銆傝櫧姹傚姪浜庣綉緇滐紝鍙戣創浜?/span>
vckbase
銆?/span>
聽聽聽聽聽聽
闂宸茬粡瑙e喅錛屽笘瀛愭憳瑕佸涓嬶細
涓?span lang="EN-US">聽聽聽聽聽聽 棰?span lang="EN-US">: 鍑芥暟妯$増闂錛屼負浠涔堜笉鑳介噰鐢ㄥ鏂囦歡鏂瑰紡銆?span lang="EN-US">聽 浣?span lang="EN-US">聽聽聽聽聽聽鑰?span lang="EN-US">: 閮櫒 (
涔︾) 鎵灞炶鍧?span lang="EN-US">: C++ 璁哄潧 鏈笘鍒嗘暟: 0 鍥炲嬈℃暟: 4 鍙戣〃鏃墮棿: 2006-8-12 19:09:50 姝f枃鍐呭: 1 錛?span lang="EN-US"> #include <fstream> #include <iostream> using namespace std; template<class Type > Type min(Type a, Type b) { 聽聽聽聽return a < b ? a : b; } int main(int argc, char* argv[]) { 聽聽聽聽cout << min(10, 20) << endl; 聽聽聽聽return 0; } 鍙互緙栬瘧鎴愬姛錛岃繍琛屽緱鍒版紜粨鏋溿?span lang="EN-US"> 2錛夊鏂囦歡鏂瑰紡 ///////////////////////main.cxx #include "min.h" #include <fstream> #include <iostream> using namespace std; int main(int argc, char* argv[]) { 聽聽聽聽cout << min(10, 20) << endl; 聽聽聽聽return 0; } ///////////////////////min.h #ifndef _MIN_GHH_ #define _MIN_GHH_聽聽1 template<class Type > Type min(Type a, Type b); #endif //////////////////////min.cxx #include "min.h" template<class Type > Type min(Type a, Type b) { 聽聽聽聽return a < b ? a : b; } 緙栬瘧鎶ュ憡閿欒錛?span lang="EN-US"> Linking... 20060812_function_template.obj : error LNK2001: unresolved external symbol "int __cdecl min(int,int)" (?min@@YAHHH@Z) Debug/20060812_function_template.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. 20060812_function_template.exe - 2 error(s), 0 warning(s) //////////////////////////////////// 闂錛氫負浠涔堜細鍑虹幇榪欑闂錛屽浣曡В鍐籌紵鐩艱祼鏁欍?span lang="EN-US"> 鏈鏂頒慨鏀?span lang="EN-US">:2006-8-12 19:41:10
鍥炲浜?span lang="EN-US">: newgun (
涔︾)聽
2006-8-12 19:34:29 (
寰楀垎:
10
)聽
Re:
鍑芥暟妯$増闂錛屼負浠涔堜笉鑳介噰鐢ㄥ鏂囦歡鏂瑰紡銆?span lang="EN-US"> 鍦?span lang="EN-US">c++
鏍囧噯涓瀹氬彲浠ラ噰鐢ㄥ垎紱葷殑緙栬瘧妯″紡錛屽彧闇瑕侀氳繃鍦ㄦā鏉垮畾涔変腑鐨勫叧閿瓧template 涔嬪墠鍔犱笂鍏抽敭瀛?span lang="EN-US">export 鏉ュ0鏄庝竴涓彲瀵煎嚭鐨勫嚱鏁版ā鏉垮綋鍑芥暟妯℃澘錛岃瀵煎嚭鏃舵垜浠氨鍙互鍦ㄤ換鎰忕▼搴忔枃鏈枃浠朵腑浣跨敤妯℃澘鐨勫疄渚嬪錛?span lang="EN-US"> 聽聽// model2.h // 鍒嗙妯″紡: 鍙彁渚涙ā鏉垮0鏄?span lang="EN-US"> template <typename Type> Type min( Type t1, Type t2 ); // model2.C // the template definition export template <typename Type>聽聽聽聽//export 鍏抽敭瀛?span lang="EN-US"> Type min( Type t1, Type t2 ) { /* ...*/ } 聽聽聽聽浣嗘槸濂藉儚鐜板湪鐨勫ソ澶氱紪璇戝櫒濡?span lang="EN-US">vc7閮借繕涓嶆敮鎸佽繖縐嶇粨鏋勶紝鎵浠ユ渶濂芥妸妯℃澘鐨勫0鏄?/font>鍜屽畾涔夐兘鏀懼湪澶存枃浠墮噷 銆?span lang="EN-US">
聽聽聽聽聽聽
鎰熷彈錛氬緱鍒扮綉鍙嬫彁紺猴紝鐪熸湁涓縐嶁滄煶鏆楄姳鏄庡張涓鏉戔濅箣鎰燂紝榪欎釜鎵璋?/span>
bug
鏄繖涔堢畝鍗曞張鏄繖涔堜笉綆鍗曪紒
聽聽聽聽聽聽
涓鐩磋涓哄簲璇ユ槸鑷繁鐨勯敊璇紝浣嗘病鎯沖埌鏄紪璇戝櫒鍜屾爣鍑嗗吋瀹規х殑闂銆傜湅鏉ヨ嚜宸辯殑鎬濈淮涔犳儻搴旇鏈夋墍鏀瑰彉浜嗐傚簲璇ュ瑙掑害鍒嗘瀽闂錛岃屼笉鑳戒竴鍛崇殑鎯沖綋鐒躲?/span>
聽聽聽聽聽聽 Ps
錛氳嚜宸變篃搴旇鑰冭檻灝濊瘯涓涓柊鐨?/span>
C++
緙栬瘧鍣ㄤ簡錛岃佺敤
vc
錛屾劅瑙夊鐨勬爣鍑?/span>
C++
閮戒笉綰紝灝辮薄榪欐浜嬩歡涓鏍楓?/span>
]]>
久久精品国产精品亚洲精品 |
91视频国产91久久久 |
国产亚州精品女人久久久久久
|
青青草国产精品久久久久 |
女人香蕉久久**毛片精品 |
韩国三级中文字幕hd久久精品 |
亚洲精品NV久久久久久久久久 |
精品久久久无码人妻中文字幕
|
91久久精一区二区三区大全 |
大香网伊人久久综合网2020 |
久久九九久精品国产免费直播 |
MM131亚洲国产美女久久 |
久久午夜综合久久 |
91精品国产高清久久久久久io |
久久av高潮av无码av喷吹 |
亚洲精品国产字幕久久不卡
|
久久se精品一区二区 |
亚洲精品午夜国产va久久 |
国产精品久久久久久 |
国产精品久久久久a影院 |
亚洲天堂久久精品 |
久久国产精品一国产精品金尊 |
日韩AV毛片精品久久久 |
婷婷久久综合九色综合98 |
亚洲精品无码久久久久去q |
久久99精品久久久久久齐齐 |
国产日产久久高清欧美一区 |
日产精品久久久久久久性色 |
亚洲人成无码www久久久 |
久久av免费天堂小草播放 |
久久电影网一区 |
国内精品久久久久 |
久久久久久午夜成人影院 |
99久久国产综合精品女同图片 |
亚洲Av无码国产情品久久 |
久久国产视屏 |
久久夜色精品国产www |
亚洲欧美成人久久综合中文网
|
国产69精品久久久久9999APGF |
欧美精品丝袜久久久中文字幕 |
久久毛片免费看一区二区三区 |