锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产香蕉97碰碰久久人人,久久精品国亚洲,欧美日韩国产一区二区http://m.shnenglu.com/cokecoffe/archive/2012/06/02/177261.htmlWangkekeWangkekeSat, 02 Jun 2012 15:46:00 GMThttp://m.shnenglu.com/cokecoffe/archive/2012/06/02/177261.htmlhttp://m.shnenglu.com/cokecoffe/comments/177261.htmlhttp://m.shnenglu.com/cokecoffe/archive/2012/06/02/177261.html#Feedback1http://m.shnenglu.com/cokecoffe/comments/commentRss/177261.htmlhttp://m.shnenglu.com/cokecoffe/services/trackbacks/177261.htmlIOS5.0寮濮嬫敮鎸丣SON錛屾墍浠ヤ笉鐢ㄧ涓夋柟鐨勮В鏋愪簡銆?/span>

//灝?/span>Foundation(NSDictionary銆?/span>NSData) 杞崲涓?/span>JSon鏍煎紡鐨?/span>NSData 鐢ㄦ潵鍙戦?/span>

//+ dataWithJSONObject:options:error:

 

//灝?/span>JSON鏍煎紡鐨?/span>Data杞崲涓?/span>Foundation(NSDictionary銆?/span>NSData)   鐢ㄦ潵瑙f瀽

//+ JSONObjectWithData:options:error:

code:

https://github.com/cokecoffe/ios-demo/tree/master/HTTP

  1. 瑙f瀽json鎴恉ic瀵硅薄
  2. -(void)fetchedData:(NSData*)responseData {//parse out the json dataNSError* error;
  3. NSDictionary* json =[NSJSONSerialization
  4. JSONObjectWithData:responseData //1
  5. options:kNilOptions
  6. error:&error];
  7. NSArray* latestLoans =[json objectForKey:@"loans"]; //2
  8. NSLog(@"loans: %@", latestLoans); //3
  9. }
  10. 鎶婂璞$敓鎴恓son string
  11. //build an info object and convert to json
  12. NSDictionary* info =[NSDictionary dictionaryWithObjectsAndKeys:[loan objectForKey:@"name"],
  13. @"who",
  14. [(NSDictionary*)[loan objectForKey:@"location"]
  15. objectForKey:@"country"],
  16. @"where",
  17. [NSNumber numberWithFloat: outstandingAmount],
  18. @"what",
  19. nil];
  20. //convert object to data
  21. NSData* jsonData =[NSJSONSerialization dataWithJSONObject:info
  22. options:NSJSONWritingPrettyPrinted error:&error];
  23. //print out the data contents
  24. jsonSummary.text =[[NSString alloc] initWithData:jsonData
  25. encoding:NSUTF8StringEncoding];
  26. 娣誨姞json鏂規硶鑷砫ic
  27. @interfaceNSDictionary(JSONCategories)
  28. +(NSDictionary*)dictionaryWithContentsOfJSONURLString:(NSString*)urlAddress;
  29. -(NSData*)toJSON;
  30. @end
  31. @implementationNSDictionary(JSONCategories)
  32. +(NSDictionary*)dictionaryWithContentsOfJSONURLString:(NSString*)urlAddress{
  33. NSData* data =[NSData dataWithContentsOfURL:[NSURL URLWithString: urlAddress]];
  34. __autoreleasing NSError* error =nil;
  35. id result =[NSJSONSerialization JSONObjectWithData:data
  36. options:kNilOptions error:&error];
  37. if(error !=nil)returnnil;
  38. return result;
  39. }
  40. -(NSData*)toJSON{
  41. NSError* error =nil;
  42. id result =[NSJSONSerialization dataWithJSONObject:self
  43. options:kNilOptions error:&error];
  44. if(error !=nil)returnnil;
  45. return result;
  46. }@end
  47. 浣跨敤鍒楀瓙
  48. NSDictionary* myInfo =[NSDictionary dictionaryWithContentsOfJSONURLString:@"http://www.yahoo.com/news.json"];
  49. NSDictionary* information =[NSDictionary dictionaryWithObjectsAndKeys:@"orange",@"apple",@"banana",@"fig",nil];
  50. NSData* json =[information toJSON];
  51. 鍒ゆ柇鏄惁鍙痡son鍖?
  52. BOOL isTurnableToJSON =[NSJSONSerialization isValidJSONObject: object]


Wangkeke 2012-06-02 23:46 鍙戣〃璇勮
]]>
Subversion鍩虹錛氭蹇點佸畨瑁呫侀厤緗拰鍩烘湰鎿嶄綔(杞級http://m.shnenglu.com/cokecoffe/archive/2012/06/01/177030.htmlWangkekeWangkekeFri, 01 Jun 2012 02:25:00 GMThttp://m.shnenglu.com/cokecoffe/archive/2012/06/01/177030.htmlhttp://m.shnenglu.com/cokecoffe/comments/177030.htmlhttp://m.shnenglu.com/cokecoffe/archive/2012/06/01/177030.html#Feedback0http://m.shnenglu.com/cokecoffe/comments/commentRss/177030.htmlhttp://m.shnenglu.com/cokecoffe/services/trackbacks/177030.html

杞嚜:http://www.uml.org.cn/pzgl/200902137.asp
鎽樿錛氫粙緇嶄簡 Subversion 鐨勫熀鏈蹇點傝緇嗚瑙d簡鍦╓indows涓嬪浣曞畨瑁?Subversion錛屽浣曢厤緗竴涓熀鏈殑Subversion 鏈嶅姟鍣?/a>銆?p> 

鐩綍

涓銆佸熀鏈蹇?/p>

1銆佷粈涔堟槸鐗堟湰鎺у埗

2銆佷粈涔堟槸 Subversion

3銆佺増鏈簱(repository)

浜屻佸畨瑁?/p>

1銆佸噯澶囧伐浣?/p>

2銆佸畨瑁?a title="鏈嶅姟鍣? target="_blank" style="text-decoration: none; color: #000000; cursor: pointer; ">鏈嶅姟鍣?/a>绔拰瀹㈡埛绔?/p>

3銆佸緩绔嬬増鏈簱(Repository)

4銆佽繍琛岀嫭绔嬫湇鍔″櫒

涓夈佸熀鏈厤緗?/p>

1銆侀厤緗敤鎴峰拰鏉冮檺

2銆佸垵濮嬪寲瀵煎叆

鍥涖佸熀鏈搷浣滄祦紼?/p>

1銆佸彇鍑?check out)

2銆佸瓨鍏?check in)/鎻愪氦(commit)

------------------------------------------------------------------鍒?鍓?綰?--------------------------------------------------------------

涓銆佸熀鏈蹇?/strong>

1銆佷粈涔堟槸鐗堟湰鎺у埗

綆鍗曠偣鏉ヨ錛岀増鏈帶鍒跺氨鏄暟鎹粨搴擄紝瀹冨彲浠ヨ褰曚綘瀵規枃浠剁殑姣忔鏇存敼銆傝繖鏍鳳紝灝辯畻浣犲湪鏄忓ぉ榛戝湴鐨勬敼浜嗗嚑涓湀鍚庤佹澘璇翠笉瑕佷簡錛岃繕鏄寜鐓ц繃鍘婚偅鏍鳳紝浣犱篃涓嶄細鎶撶媯錛岀畝鍗曠殑鎭㈠鐗堟湰鎿嶄綔灝辨悶瀹氫竴鍒囥?/p>

2銆佷粈涔堟槸 Subversion

Subversion鏄竴涓嚜鐢?寮婧愮増鏈帶鍒剁郴緇燂紝瀹冪鐞嗘枃浠跺拰鐩綍鍙互瓚呰秺鏃墮棿銆備竴緇勬枃浠跺瓨鏀懼湪涓績鐗堟湰搴擄紝榪欎釜鐗堟湰搴撳緢鍍忎竴涓櫘閫氱殑鏂囦歡鏈嶅姟鍣紝鍙槸瀹冨彲浠ヨ褰曟瘡涓嬈℃枃浠跺拰鐩綍鐨勪慨鏀癸紝榪欎究浣夸綘鍙互鍙栧緱鏁版嵁浠ュ墠鐨勭増鏈紝浠庤屽彲浠ユ鏌ユ墍浣滅殑鏇存敼銆備粠榪欎釜鏂歸潰鐪嬶紝璁稿浜烘妸鐗堟湰鎺у埗緋葷粺褰撲綔涓縐?#8220;鏃墮棿鏈哄櫒”銆?/p>

Subversion鍙互閫氳繃緗戠粶璁塊棶瀹冪殑鐗堟湰搴擄紝浠庤屼嬌鐢ㄦ埛鍙互鍦ㄤ笉鍚岀殑鐢佃剳涓婁嬌鐢ㄣ備竴瀹氱▼搴︿笂鍙互璇達紝鍏佽鐢ㄦ埛鍦ㄥ悇鑷殑鍦版柟淇敼鍚屼竴浠芥暟鎹槸淇冭繘鍗忎綔銆傝繘灞曞彲鑳介潪甯哥殑榪呴燂紝騫舵病鏈変竴涓墍鏈夌殑鏀瑰彉閮戒細鍙栧緱鏁堟灉鐨勯氶亾錛岀敱浜庢墍鏈夌殑宸ヤ綔閮芥湁鍘嗗彶鐗堟湰錛屼綘涓嶅繀鎷呭績鐢變簬澶卞幓鏌愪釜閫氶亾鑰屽獎鍝嶈川閲忥紝濡傛灉瀛樺湪涓嶆紜殑鏀瑰彉錛屽彧瑕佸彇娑堟敼鍙樸?/p>

涓浜涚増鏈帶鍒剁郴緇熶篃鏄?a title="杞歡" target="_blank" style="text-decoration: none; color: #000000; cursor: pointer; ">杞歡閰嶇疆綆$悊(SCM)緋葷粺錛岃繖縐嶇郴緇熺粡榪囩壒瀹氱殑綺懼閥璁捐鏉ョ鐞嗘簮浠g爜錛屾湁璁稿鍏充簬杞歡寮鍙戠殑鐗規?#8212;鏈韓鐞嗚В緙栫▼璇█銆佹垨鑰呮彁渚涙瀯寤虹▼搴忕殑宸ュ叿銆傜劧鑰岋紝Subversion涓嶆槸榪欐牱涓涓郴緇燂紝瀹冩槸涓涓氱敤緋葷粺錛屽彲浠ョ鐞嗕換浣曠被鍨嬬殑鏂囦歡闆嗭紝瀵逛綘榪欏彲鑳芥槸婧愪唬鐮侊紝瀵瑰埆浜猴紝鍙兘鏄竴涓揣鐗╂姤浠峰崟鎴栬呮槸涔︾ǹ錛屾垨鑰呮槸鐢靛獎鍓緫絳夈?/p>

3銆佺増鏈簱(repository)

Subversion 鐨勬牳蹇冨氨鏄?repository 錛屼腑鏂囩炕璇戞垚“鐗堟湰搴?#8221;銆傚氨鏄綅浜庢湇鍔″櫒绔紝緇熶竴綆$悊鍜屽偍瀛樻暟鎹殑鍦版柟銆?/p>

浜屻佸畨瑁?/strong>

Subversion鐨勮璁″寘鎷竴涓娊璞$殑緗戠粶灞傦紝榪欐剰鍛崇潃鐗堟湰搴撳彲浠ラ氳繃鍚勭鏈嶅姟鍣?/a>榪涚▼璁塊棶銆傜悊璁轟笂璁詫紝Subversion鍙互浣跨敤鏃犻檺鏁伴噺鐨勭綉緇滃崗璁疄鐜幫紝鐩墠瀹炶返涓瓨鍦ㄧ潃涓ょ鏈嶅姟鍣?/a>銆?/p>

• SVNServer錛歴vnserve 鏄竴涓皬鐨?涔熷彨杞誨瀷鐨?銆佺嫭绔嬫湇鍔″櫒錛屼嬌鐢ㄨ嚜宸卞畾涔夌殑鍗忚鍜屽鎴風銆?浣滆呮敞錛氫互涓嬬О榪欑鏈嶅姟鍣ㄤ負“svnserver鏈嶅姟鍣?#8221;銆?

• ApacheSVN錛欰pache鏄渶嫻佽鐨剋eb鏈嶅姟鍣紝閫氳繃浣跨敤 mod_dav_svn 妯″潡錛孉pache鍙互璁塊棶鐗堟湰搴擄紝騫朵笖鍙互浣垮鎴風浣跨敤HTTP鐨勬墿灞曞崗璁甒ebDAV/DeltaV榪涜璁塊棶銆?浣滆呮敞錛氫互涓嬬О榪欑鏈嶅姟鍣ㄤ負“ApacheSVN鏈嶅姟鍣?#8221;銆?

涓嬮潰浠嬬粛 SVNServer 鏈嶅姟鍣ㄧ殑瀹夎錛孉pacheSVN 鏈嶅姟鍣ㄧ殑瀹夎浣跨敤璇風湅鎴戝啓鐨勩奡ubversion楂樼駭搴旂敤錛歋VN鐨勫縐嶈璇佹柟寮忋嬨?/p>

鐜

OS錛歐indows XP SP2

Web錛欰pache 2.2.6

SVN錛歴vn-win32-1.4.6

1銆佸噯澶囧伐浣溿?/p>

(1)鑾峰彇 Subversion 鏈嶅姟鍣ㄧ▼搴忋?/p>

鍒板畼鏂圭綉绔?http://subversion.tigris.org/)涓嬭澆鏈鏂扮殑鏈嶅姟鍣ㄥ畨瑁呯▼搴忋傜洰鍓嶆渶鏂扮殑鏄?.4.6鐗堟湰錛屽叿浣撲笅杞藉湴鍧鍦細http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=91 錛屾敞鎰忔壘 for apache 2.2.x 鐗堟湰鐨勩?/p>

(2)鑾峰彇 TortoiseSVN 瀹㈡埛绔▼搴忋?/p>

浠庡畼鏂圭綉绔?http://tortoisesvn.net/downloads 鑾峰彇鏈鏂扮殑 TortoiseSVN 銆俆ortoiseSVN 鏄竴涓鎴風紼嬪簭錛岀敤鏉ヤ笌 subvers 鏈嶅姟鍣ㄧ閫氳銆係ubversion 鑷甫涓涓鎴風紼嬪簭 svn.exe ,浣?TortoiseSVN 鏇村ソ鎿嶄綔錛屾彁楂樻晥鐜囥?/p>

2銆佸畨瑁呮湇鍔″櫒绔拰瀹㈡埛绔?/p>

棣栧厛瀹夎 Apache 2.2.6 錛屽叿浣撳畨瑁呮柟娉曞ぇ瀹跺弬鑰冪浉鍏寵祫鏂欙紝鎴栬呭弬鐪嬫垜鍐欑殑銆奧indows涓嬪畨瑁匒pache 2.2.x銆嬨?/p>

鍏舵瀹夎 Subversion(浠ヤ笅綆縐癝VN)鐨勬湇鍔″櫒绔拰瀹㈡埛绔備笅杞戒笅鏉ョ殑鏈嶅姟鍣ㄧ鏄釜 zip 鍘嬬緝鍖咃紝鐩存帴瑙e帇緙╁嵆鍙紝姣斿鎴戣В鍘嬪埌 E:\subversion 銆傚鎴風瀹夎鏂囦歡鏄釜 exe 鍙墽琛屾枃浠訛紝鐩存帴榪愯鎸夋彁紺哄畨瑁呭嵆鍙紝瀹㈡埛绔畨瑁呭畬鎴愬悗鎻愮ず閲嶅惎銆?/p>

3銆佸緩绔嬬増鏈簱(Repository)

榪愯Subversion鏈嶅姟鍣ㄩ渶瑕侀鍏堣寤虹珛涓涓増鏈簱(Repository)銆傜増鏈簱鍙互鐪嬩綔鏄湇鍔″櫒涓婇泦涓瓨鏀懼拰綆$悊鏁版嵁鐨勫湴鏂廣?/p>

寮濮嬪緩绔嬬増鏈簱銆傞鍏堝緩绔?e:\svn 絀烘枃浠跺す浣滀負鎵鏈夌増鏈簱鐨勬牴鐩綍銆傜劧鍚庯紝榪涘叆鍛戒護琛屽茍鍒囨崲鍒皊ubversion鐨刡in鐩綍銆傝緭鍏ュ涓嬪懡浠わ細

姝ゅ懡浠ゅ湪 E:\svn 涓嬪緩绔嬩竴涓増鏈簱 repos1 銆俽epos1 涓嬮潰浼氳嚜鍔ㄧ敓鎴愪竴浜涙枃浠跺す鍜屾枃浠躲?/p>

鎴戜滑涔熷彲浠ヤ嬌鐢?TortoiseSVN 鍥懼艦鍖栫殑瀹屾垚榪欎竴姝ワ細

鍏堝緩绔嬬┖鐩綍 E:\svn\repos1 錛屾敞鎰忎竴瀹氭槸瑕佺┖鐨勩傜劧鍚庡湪 repos1 鏂囦歡澶逛笂“鍙抽敭->TortoiseSVN->Create Repository here...”錛岀劧鍚庡彲浠ラ夋嫨鐗堟湰搴撴ā寮忥紝榪欓噷浣跨敤榛樿鐨凢SFS鍗沖彲錛岀劧鍚庡氨鍒涘緩浜嗕竴緋誨垪鏂囦歡澶瑰拰鏂囦歡錛屽悓鍛戒護琛屽緩绔嬬殑涓鏍楓?/p>

4銆佽繍琛岀嫭绔嬫湇鍔″櫒

姝ゆ椂 subversion 鏈嶅姟榪樻病鏈夊紑濮嬶紝鍙槸閫氳繃瀹冪殑鍛戒護寤虹珛浜嗙増鏈簱銆傜戶緇湪鍒氭墠鐨勫懡浠ょ獥鍙h緭鍏ワ細 

svnserve 灝嗕細鍦ㄧ鍙?3690 絳夊緟璇鋒眰錛?-daemon(涓や釜鐭í綰?閫夐」鍛婅瘔 svnserve 浠ュ畧鎶よ繘紼嬫柟寮忚繍琛岋紝榪欐牱鍦ㄦ墜鍔ㄧ粓姝箣鍓嶄笉浼氶鍑恒傛敞鎰忎笉瑕佸叧闂懡浠よ紿楀彛錛屽叧闂獥鍙d細鎶?svnserve 鍋滄銆?/p>

涓轟簡楠岃瘉svnserve姝e父宸ヤ綔錛屼嬌鐢═ortoiseSVN -> Repo-browser 鏉ユ煡鐪嬬増鏈簱銆傚湪寮瑰嚭鐨?URL 瀵硅瘽妗嗕腑杈撳叆錛?nbsp;

鐐?OK 鎸夐挳鍚庡氨鍙互鐪嬭 repos1 鐗堟湰搴撶殑鐩綍鏍戠粨鏋勪簡錛屽彧涓嶈繃榪欐椂 repos1 鏄釜絀哄簱銆?/p>

浣犱篃鍙互浣跨敤--root閫夐」璁劇疆鏍逛綅緗潵闄愬埗鏈嶅姟鍣ㄧ殑璁塊棶鐩綍錛屼粠鑰屽鍔?a title="瀹夊叏" target="_blank" style="text-decoration: none; color: #000000; cursor: pointer; ">瀹夊叏鎬у拰鑺傜害杈撳叆svnserve URL鐨勬椂闂達細 

銆銆svnserve.exe --daemon --root drive:\path\to\repository

浠ュ墠闈㈢殑嫻嬭瘯浣滀負渚嬶紝svnserve 灝嗕細榪愯涓猴細 

銆銆svnserve.exe --daemon --root e:\svn

鐒跺悗TortoiseSVN涓殑鐗堟湰搴撴祻瑙堝櫒URL緙╁噺涓猴細 

銆銆svn://localhost/repos1

涓夈佸熀鏈厤緗?/strong>

SVNServer鏈嶅姟鍣?/a>瀹夎瀹屾垚鍚庯紝蹇呴』緇忚繃鍩烘湰閰嶇疆鎵嶈兘浣跨敤銆?/p>

1銆侀厤緗敤鎴峰拰鏉冮檺

鐢ㄦ枃鏈紪杈戝櫒鎵撳紑E:\svn\repos1\conf鐩綍錛屼慨鏀箂vnserve.conf錛?/p>

灝嗭細 

鏀逛負錛?nbsp;

鍗沖幓鎺夊墠闈㈢殑 # 娉ㄩ噴絎︼紝娉ㄦ剰鍓嶉潰涓嶈兘鏈夌┖鏍箋?/p>

鐒跺悗淇敼鍚岀洰褰曠殑passwd鏂囦歡錛屽鍔犱竴涓笎鍙鳳細

灝嗭細

澧炲姞甯愬彿錛?/p>

2銆佸垵濮嬪寲瀵煎叆

涓嬮潰灝辨槸灝嗘垜浠殑鏁版嵁(欏圭洰)瀵煎叆鍒拌繖涓増鏈簱錛屼互鍚庡氨鐢辯増鏈簱綆$悊鎴戜滑鐨勬暟鎹傛垜浠殑浠諱綍鏀瑰姩閮戒細琚増鏈簱璁板綍涓嬫潵錛岀敋鑷蟲垜浠嚜宸變涪澶便佹敼閿欐暟鎹椂鐗堟湰搴撲篃鑳藉府鎴戜滑鎵懼洖鏁版嵁銆?/p>

姣斿錛屾垜鍦?d:\wwwroot 涓嬫湁涓?guestbook 鏂囦歡澶癸紝閲岄潰瀛樻斁鐨勬槸鎴戠紪鍐欑殑鐣欒█綈跨▼搴忋傚湪姝ゆ枃浠跺す涓?#8220;鍙抽敭 -> TortoiseSVN -> Import...” 錛屽湪寮瑰嚭瀵硅瘽妗嗙殑“URL of repository”杈撳叆“svn://localhost/repos1/guestbook”銆傚湪“Import message”杈撳叆“瀵煎叆鏁翠釜鐣欒█綈?#8221;浣滀負娉ㄩ噴銆?/p>

鐐?OK 鍚庤姹傝緭鍏ュ笎鍙楓傛垜浠湪鐢ㄦ埛鍚嶅拰瀵嗙爜澶勯兘杈撳叆 test 銆傚畬鎴愬悗 guestbook 涓殑鍐呭鍏ㄩ儴瀵煎叆鍒頒簡 svn://localhost/svn/repos1/guestbook 銆?/p>

鎴戜滑鐪嬪埌鍦?e:\svn\repos1 娌℃湁浠諱綍鍙樺寲錛岃繛涓?guestbook 鏂囦歡澶歸兘娌℃湁寤虹珛錛屽敮涓鐨勫彉鍖栧氨鏄痚:\svn\repos1瀹歸噺鍙樺ぇ浜嗐傚疄闄呬笂鎴戜滑婧恎uestbook涓殑鍐呭宸茬粡瀵煎叆 repos1 鐗堟湰搴撲簡錛屾簮 guestbook 鏂囦歡澶瑰彲浠ュ垹闄や簡銆?/p>

闇瑕佹敞鎰忕殑鏄紝榪欎竴姝ユ搷浣滃彲浠ュ畬鍏ㄥ湪鍙︿竴鍙板畨瑁呬簡 TortoiseSVN 鐨勫鎴鋒満涓婅繘琛屻備緥濡傝繍琛宻vnserve鐨勪富鏈虹殑IP鏄?33.96.121.22錛屽垯URL閮ㄥ垎杈撳叆鐨勫唴瀹瑰氨鏄?#8220;svn://133.96.121.22” 銆?/p>

鍥涖佸熀鏈搷浣滄祦紼?/strong>

1銆佸彇鍑?check out)

鍙栧嚭鐗堟湰搴撳埌涓涓伐浣滄嫹璐濓細

鏉ュ埌浠繪剰絀虹洰褰曚笅錛屾瘮濡傚湪f鍒嗗尯寤虹珛涓涓┖鏂囦歡澶?f:\work 銆?#8220;鍙抽敭 -> SVN Checkout”銆傚湪“URL of repository”涓緭鍏?#8220;svn://localhost/svn/repos1/guestbook”錛岃繖鏍鋒垜浠氨寰楀埌浜嗕竴浠?guestbook 涓唴瀹圭殑宸ヤ綔鎷瘋礉銆?/p>

2銆佸瓨鍏?check in)/鎻愪氦(commit)

鍦ㄥ伐浣滄嫹璐濅腑浣滃嚭淇敼騫舵彁浜わ細

鍦?guestbook 宸ヤ綔鎷瘋礉涓殢渚挎墦寮涓涓枃浠訛紝浣滃嚭淇敼錛岀劧鍚?#8220;鍙抽敭 -> SVN Commit... ”銆傝繖鏍鋒垜浠氨鎶婁慨鏀規彁浜ゅ埌浜嗙増鏈簱錛岀増鏈簱鏍規嵁鎯呭喌瀛樺偍鎴戜滑鎻愪氦鐨勬暟鎹?/p>

鍦ㄤ慨鏀硅繃鐨勬枃浠朵笂“鍙抽敭 -> TortoiseSVN -> Show Log” 錛屽彲浠ョ湅鍒板榪欎釜鏂囦歡鎵鏈夌殑鎻愪氦銆傚湪涓嶅悓鐨?revision 鏉$洰涓?#8220;鍙抽敭 -> Compare with working copy”錛屾垜浠彲浠ユ瘮杈冨伐浣滄嫹璐濈殑鏂囦歡鍜屾墍閫?revision 鐗堟湰鐨勫尯鍒?/p>



Wangkeke 2012-06-01 10:25 鍙戣〃璇勮
]]>
IOS涓婼QLite鐨勭畝鍗曚嬌鐢?/title><link>http://m.shnenglu.com/cokecoffe/archive/2012/05/31/176978.html</link><dc:creator>Wangkeke</dc:creator><author>Wangkeke</author><pubDate>Thu, 31 May 2012 15:37:00 GMT</pubDate><guid>http://m.shnenglu.com/cokecoffe/archive/2012/05/31/176978.html</guid><wfw:comment>http://m.shnenglu.com/cokecoffe/comments/176978.html</wfw:comment><comments>http://m.shnenglu.com/cokecoffe/archive/2012/05/31/176978.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/cokecoffe/comments/commentRss/176978.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/cokecoffe/services/trackbacks/176978.html</trackback:ping><description><![CDATA[<p>鐪嬬潃鍥藉緗戠珯鐨勬暀紼嬶紝鍐欎簡涓涓皬渚嬪瓙錛屼竴涓仈緋諱漢鐨勭▼搴忥紝鍖呮嫭 錛堝鍚嶃佸湴鍧銆佺數璇濓級涓夐」鍐呭錛岄氳繃涓や釜鎸夐挳錛屽彲浠ュ皢淇℃伅淇濆瓨鎴栬呮煡璇㈡暟鎹簱宸叉湁鐨勪俊鎭?/p> <p>UI灝變笉璇翠簡錛屾瘮杈冪畝鍗曘傝創涓涓嬪叧閿唬鐮侊紝鍏蜂綋鐨勮瘽榪樻槸鍘葷湅婧愪唬鐮?姝f兂鍔炴硶浼狅紝鎴戣繖git鍑虹偣闂)銆?/p> <p>聽</p> <p><strong>/*<span style="font: normal normal normal 11px/normal 'Heiti SC Light';">鏍規嵁璺緞鍒涘緩鏁版嵁搴撳茍鍒涘緩涓涓〃</span>contact(id nametext addresstext phonetext)*/</strong></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">- (<span style="color: #103ffb;">void</span>)viewDidLoad</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> [</span><span style="color: #103ffb;">super</span><span style="color: #000000;"> </span>viewDidLoad<span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008d14;"><span style="color: #000000;"><span style="white-space: pre;"> </span></span>// Do any additional setup after loading the view, typically from a nib.</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;"> NSString</span> *docsDir;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;"> NSArray</span> *dirPaths;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008d14;"><span style="color: #000000;"> </span>// Get the documents directory</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> dirPaths = </span>NSSearchPathForDirectoriesInDomains<span style="color: #000000;">(</span>NSDocumentDirectory<span style="color: #000000;">, </span>NSUserDomainMask<span style="color: #000000;">, </span><span style="color: #103ffb;">YES</span><span style="color: #000000;">);</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">docsDir = [dirPaths <span style="color: #3995ad;">objectAtIndex</span>:0];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #008d14;"><span style="color: #000000;"> </span>// Build the path to the database file</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span> databasePath<span style="color: #000000;"> = [[</span>NSString<span style="color: #000000;"> </span>alloc<span style="color: #000000;">] </span>initWithString<span style="color: #000000;">: [docsDir </span>stringByAppendingPathComponent<span style="color: #000000;">: </span><span style="color: #b22822;">@"contacts.db"</span><span style="color: #000000;">]];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span> NSFileManager<span style="color: #000000;"> *filemgr = [</span>NSFileManager<span style="color: #000000;"> </span>defaultManager<span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span><span style="color: #103ffb;"> if</span><span style="color: #000000;"> ([filemgr </span>fileExistsAtPath<span style="color: #000000;">:</span>databasePath<span style="color: #000000;">] == </span><span style="color: #103ffb;">NO</span><span style="color: #000000;">) </span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;"> const</span> <span style="color: #103ffb;">char</span> *dbpath = [<span style="color: #3995ad;">databasePath</span> <span style="color: #3995ad;">UTF8String</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;"> if</span> (<span style="color: #3995ad;">sqlite3_open</span>(dbpath, &<span style="color: #3995ad;">contactDB</span>)==<span style="color: #103ffb;">SQLITE_OK</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;"> char</span> *errMsg;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #b22822;"><span style="color: #000000;"> </span><span style="color: #103ffb;"> const</span><span style="color: #000000;"> </span><span style="color: #103ffb;">char</span><span style="color: #000000;"> *sql_stmt = </span>"CREATE TABLE IF NOT EXISTS CONTACTS(ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT, ADDRESS TEXT,PHONE TEXT)"<span style="color: #000000;">;</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;"> if</span> (<span style="color: #3995ad;">sqlite3_exec</span>(<span style="color: #3995ad;">contactDB</span>, sql_stmt, <span style="color: #103ffb;">NULL</span>, <span style="color: #103ffb;">NULL</span>, &errMsg)!=<span style="color: #103ffb;">SQLITE_OK</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;"> status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">鍒涘緩琛ㄥけ璐?/span><span style="color: #b22822;">\n"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;"> else</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;"> status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">鍒涘緩</span><span style="color: #b22822;">/</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">鎵撳紑鏁版嵁搴撳け璐?/span><span style="color: #b22822;">"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><strong>/*灝嗘暟鎹繚瀛樺彧鏁版嵁搴擄紝褰撴寜涓嬩繚瀛樻寜閽殑鏃跺?/</strong></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">- (<span style="color: #103ffb;">IBAction</span>)SaveToDataBase:(<span style="color: #103ffb;">id</span>)sender</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">sqlite3_stmt</span> *statement;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span><span style="color: #103ffb;">const</span><span style="color: #000000;"> </span><span style="color: #103ffb;">char</span><span style="color: #000000;"> *dbpath = [</span>databasePath<span style="color: #000000;"> </span>UTF8String<span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">if</span> (<span style="color: #3995ad;">sqlite3_open</span>(dbpath, &<span style="color: #3995ad;">contactDB</span>)==<span style="color: #103ffb;">SQLITE_OK</span>) {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #b22822;"><span style="color: #000000;"> </span><span style="color: #3995ad;">NSString</span><span style="color: #000000;"> *insertSQL = [</span><span style="color: #3995ad;">NSString</span><span style="color: #000000;"> </span><span style="color: #3995ad;">stringWithFormat</span><span style="color: #000000;">:</span>@"INSERT INTO CONTACTS (name,address,phone) VALUES(\"%@\",\"%@\",\"%@\")"<span style="color: #000000;">,</span><span style="color: #3995ad;">name</span><span style="color: #000000;">.</span><span style="color: #3995ad;">text</span><span style="color: #000000;">,</span><span style="color: #3995ad;">address</span><span style="color: #000000;">.</span><span style="color: #3995ad;">text</span><span style="color: #000000;">,</span><span style="color: #3995ad;">phone</span><span style="color: #000000;">.</span><span style="color: #3995ad;">text</span><span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">const</span> <span style="color: #103ffb;">char</span> *insert_stmt = [insertSQL <span style="color: #3995ad;">UTF8String</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">sqlite3_prepare_v2</span>(<span style="color: #3995ad;">contactDB</span>, insert_stmt, -1, &statement, <span style="color: #103ffb;">NULL</span>);</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">if</span> (<span style="color: #3995ad;">sqlite3_step</span>(statement)==<span style="color: #103ffb;">SQLITE_DONE</span>) {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">宸插瓨鍌ㄥ埌鏁版嵁搴?/span><span style="color: #b22822;">"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">name</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@""</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">address</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@""</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">phone</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@""</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">else</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">淇濆瓨澶辮觸</span><span style="color: #b22822;">"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">sqlite3_finalize</span>(statement);</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span>sqlite3_close<span style="color: #000000;">(</span>contactDB<span style="color: #000000;">);</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><strong>/*鏍規嵁杈撳叆鐨勫鍚嶆潵鏌ヨ鏁版嵁*/</strong></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">- (<span style="color: #103ffb;">IBAction</span>)SearchFromDataBase:(<span style="color: #103ffb;">id</span>)sender</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span><span style="color: #103ffb;">const</span><span style="color: #000000;"> </span><span style="color: #103ffb;">char</span><span style="color: #000000;"> *dbpath = [</span>databasePath<span style="color: #000000;"> </span>UTF8String<span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">sqlite3_stmt</span> *statement;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">if</span> (<span style="color: #3995ad;">sqlite3_open</span>(dbpath, &<span style="color: #3995ad;">contactDB</span>) == <span style="color: #103ffb;">SQLITE_OK</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #b22822;"><span style="color: #000000;"> </span><span style="color: #3995ad;">NSString</span><span style="color: #000000;"> *querySQL = [</span><span style="color: #3995ad;">NSString</span><span style="color: #000000;"> </span><span style="color: #3995ad;">stringWithFormat</span><span style="color: #000000;">:</span>@"SELECT address,phone from contacts where name=\"%@\""<span style="color: #000000;">,</span><span style="color: #3995ad;">name</span><span style="color: #000000;">.</span><span style="color: #3995ad;">text</span><span style="color: #000000;">];</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">const</span> <span style="color: #103ffb;">char</span> *query_stmt = [querySQL <span style="color: #3995ad;">UTF8String</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">if</span> (<span style="color: #3995ad;">sqlite3_prepare_v2</span>(<span style="color: #3995ad;">contactDB</span>, query_stmt, -1, &statement, <span style="color: #103ffb;">NULL</span>) == <span style="color: #103ffb;">SQLITE_OK</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">if</span> (<span style="color: #3995ad;">sqlite3_step</span>(statement) == <span style="color: #103ffb;">SQLITE_ROW</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">NSString</span> *addressField = [[<span style="color: #3995ad;">NSString</span> <span style="color: #3995ad;">alloc</span>] <span style="color: #3995ad;">initWithUTF8String</span>:(<span style="color: #103ffb;">const</span> <span style="color: #103ffb;">char</span> *)<span style="color: #3995ad;">sqlite3_column_text</span>(statement, 0)];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">address</span>.<span style="color: #3995ad;">text</span> = addressField;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">NSString</span> *phoneField = [[<span style="color: #3995ad;">NSString</span> <span style="color: #3995ad;">alloc</span>] <span style="color: #3995ad;">initWithUTF8String</span>:(<span style="color: #103ffb;">const</span> <span style="color: #103ffb;">char</span> *)<span style="color: #3995ad;">sqlite3_column_text</span>(statement, 1聽 聽 )];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">phone</span>.<span style="color: #3995ad;">text</span> = phoneField;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">宸叉煡鍒扮粨鏋?/span><span style="color: #b22822;">"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">[addressField <span style="color: #3995ad;">release</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">[phoneField <span style="color: #3995ad;">release</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #103ffb;">else</span> {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">status</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@"</span><span style="font: 11.0px 'Heiti SC Light'; color: #b22822;">鏈煡鍒扮粨鏋?/span><span style="color: #b22822;">"</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">address</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@""</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">phone</span>.<span style="color: #3995ad;">text</span> = <span style="color: #b22822;">@""</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;"><span style="color: #3995ad;">sqlite3_finalize</span>(statement);</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px;">聽</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3995ad;"><span style="color: #000000;"> </span>sqlite3_close<span style="color: #000000;">(</span>contactDB<span style="color: #000000;">);</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo;">}</p><img src ="http://m.shnenglu.com/cokecoffe/aggbug/176978.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/cokecoffe/" target="_blank">Wangkeke</a> 2012-05-31 23:37 <a href="http://m.shnenglu.com/cokecoffe/archive/2012/05/31/176978.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>IOS block 鏁欑▼http://m.shnenglu.com/cokecoffe/archive/2012/05/31/176920.htmlWangkekeWangkekeThu, 31 May 2012 05:47:00 GMThttp://m.shnenglu.com/cokecoffe/archive/2012/05/31/176920.htmlhttp://m.shnenglu.com/cokecoffe/comments/176920.htmlhttp://m.shnenglu.com/cokecoffe/archive/2012/05/31/176920.html#Feedback3http://m.shnenglu.com/cokecoffe/comments/commentRss/176920.htmlhttp://m.shnenglu.com/cokecoffe/services/trackbacks/176920.html闃呰鍏ㄦ枃

Wangkeke 2012-05-31 13:47 鍙戣〃璇勮
]]>
榪涚▼閫氫俊http://m.shnenglu.com/cokecoffe/archive/2012/05/24/175954.htmlWangkekeWangkekeWed, 23 May 2012 16:32:00 GMThttp://m.shnenglu.com/cokecoffe/archive/2012/05/24/175954.htmlhttp://m.shnenglu.com/cokecoffe/comments/175954.htmlhttp://m.shnenglu.com/cokecoffe/archive/2012/05/24/175954.html#Feedback0http://m.shnenglu.com/cokecoffe/comments/commentRss/175954.htmlhttp://m.shnenglu.com/cokecoffe/services/trackbacks/175954.htmllinux涓嬭繘紼嬮棿閫氫俊鐨勫嚑縐嶄富瑕佹墜孌電畝浠嬶細

  1. 綆¢亾錛圥ipe錛夊強鏈夊悕綆¢亾錛坣amed pipe錛夛細綆¢亾鍙敤浜庡叿鏈変翰緙樺叧緋昏繘紼嬮棿鐨勯氫俊錛屾湁鍚嶇閬撳厠鏈嶄簡綆¢亾娌℃湁鍚嶅瓧鐨勯檺鍒訛紝鍥犳錛岄櫎鍏鋒湁綆¢亾鎵鍏鋒湁鐨勫姛鑳藉錛屽畠榪樺厑璁告棤浜茬紭鍏崇郴榪涚▼闂寸殑閫氫俊錛?/span>
  2. 淇″彿錛圫ignal錛夛細淇″彿鏄瘮杈冨鏉傜殑閫氫俊鏂瑰紡錛岀敤浜庨氱煡鎺ュ彈榪涚▼鏈夋煇縐嶄簨浠跺彂鐢燂紝闄や簡鐢ㄤ簬榪涚▼闂撮氫俊澶栵紝榪涚▼榪樺彲浠ュ彂閫佷俊鍙風粰榪涚▼鏈韓錛沴inux闄や簡鏀寔Unix鏃╂湡淇″彿璇箟鍑芥暟sigal澶栵紝榪樻敮鎸佽涔夌鍚圥osix.1鏍囧噯鐨勪俊鍙峰嚱鏁皊igaction錛堝疄闄呬笂錛岃鍑芥暟鏄熀浜嶣SD鐨勶紝BSD涓轟簡瀹炵幇鍙潬淇″彿鏈哄埗錛屽張鑳藉緇熶竴瀵瑰鎺ュ彛錛岀敤sigaction鍑芥暟閲嶆柊瀹炵幇浜唖ignal鍑芥暟錛夛紱
  3. 鎶ユ枃錛圡essage錛夐槦鍒楋紙娑堟伅闃熷垪錛夛細娑堟伅闃熷垪鏄秷鎭殑閾炬帴琛紝鍖呮嫭Posix娑堟伅闃熷垪system V娑堟伅闃熷垪銆傛湁瓚沖鏉冮檺鐨勮繘紼嬪彲浠ュ悜闃熷垪涓坊鍔犳秷鎭紝琚祴浜堣鏉冮檺鐨勮繘紼嬪垯鍙互璇昏蛋闃熷垪涓殑娑堟伅銆傛秷鎭槦鍒楀厠鏈嶄簡淇″彿鎵胯澆淇℃伅閲忓皯錛岀閬撳彧鑳芥壙杞芥棤鏍煎紡瀛楄妭嫻佷互鍙婄紦鍐插尯澶у皬鍙楅檺絳夌己鐐廣?/span>
  4. 鍏變韓鍐呭瓨錛氫嬌寰楀涓繘紼嬪彲浠ヨ闂悓涓鍧楀唴瀛樼┖闂達紝鏄渶蹇殑鍙敤IPC褰㈠紡銆傛槸閽堝鍏朵粬閫氫俊鏈哄埗榪愯鏁堢巼杈冧綆鑰岃璁$殑銆傚線寰涓庡叾瀹冮氫俊鏈哄埗錛屽淇″彿閲忕粨鍚堜嬌鐢紝鏉ヨ揪鍒拌繘紼嬮棿鐨勫悓姝ュ強浜掓枼銆?/span>
  5. 淇″彿閲忥紙semaphore錛夛細涓昏浣滀負榪涚▼闂翠互鍙婂悓涓榪涚▼涓嶅悓綰跨▼涔嬮棿鐨勫悓姝ユ墜孌點?/span>
  6. 濂楁帴鍙o紙Socket錛夛細鏇翠負涓鑸殑榪涚▼闂撮氫俊鏈哄埗錛屽彲鐢ㄤ簬涓嶅悓鏈哄櫒涔嬮棿鐨勮繘紼嬮棿閫氫俊銆傝搗鍒濇槸鐢盪nix緋葷粺鐨凚SD鍒嗘敮寮鍙戝嚭鏉ョ殑錛屼絾鐜板湪涓鑸彲浠ョЩ妞嶅埌鍏跺畠綾籙nix緋葷粺涓婏細Linux鍜孲ystem V鐨勫彉縐嶉兘鏀寔濂楁帴瀛椼?/span>


Wangkeke 2012-05-24 00:32 鍙戣〃璇勮
]]>
澶氱戶鎵?/title><link>http://m.shnenglu.com/cokecoffe/archive/2012/05/23/175943.html</link><dc:creator>Wangkeke</dc:creator><author>Wangkeke</author><pubDate>Wed, 23 May 2012 14:51:00 GMT</pubDate><guid>http://m.shnenglu.com/cokecoffe/archive/2012/05/23/175943.html</guid><wfw:comment>http://m.shnenglu.com/cokecoffe/comments/175943.html</wfw:comment><comments>http://m.shnenglu.com/cokecoffe/archive/2012/05/23/175943.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/cokecoffe/comments/commentRss/175943.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/cokecoffe/services/trackbacks/175943.html</trackback:ping><description><![CDATA[<p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;">Objective-C涓嶆敮鎸佸閲嶇戶鎵匡紝浣嗘槸鎴戜滑鏈夋柟娉曞疄鐜頒吉緇ф壙.</span></p> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;">涓句釜渚嬪瓙錛屽姞鍏ュ璞鏃犳硶澶勭悊娑堟伅fun錛岃屽璞鍙互澶勭悊錛屾鏃禔宸茬粡緇ф壙浜庣被C錛屾墍浠ユ鏃禔涓嶈兘鍐嶇戶鎵緽銆傛垜浠彲浠ョ敤娑堟伅杞彂鐨勬柟寮忥紝鏉ュ皢娑堟伅杞彂緇欒兘澶熷鐞唂un娑堟伅鐨勫璞銆?/span></p> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;">褰撶劧鍙互榪欎箞瀹炵幇</span></p> <table style="width: 763px; background-color: #f1f5f9; border-collapse: collapse; border: 1px solid #c9d1d7; padding-bottom: 4px; color: #000000; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" cellspacing="0" cellpadding="6" width="100%" bgcolor="#F1F5F9"> <tbody> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"><p><span style="font-family: Monaco; font-size: 12px;">1 A: </span></p><p><span style="font-family: Monaco; font-size: 12px;">2 -fun </span></p><p><span style="font-family: Monaco; font-size: 12px;">3 { </span></p><p><span style="font-family: Monaco; font-size: 12px;">4 聽 聽 聽 聽 if([B respondTo:@selector(fun)]) </span></p><p><span style="font-family: Monaco; font-size: 12px;">5 聽 聽 聽 聽 { </span></p><p><span style="font-family: Monaco; font-size: 12px;">6 聽 聽 聽 聽 聽 聽 聽 聽 return [B fun]; </span></p><p><span style="font-family: Monaco; font-size: 12px;">7 聽 聽 聽 聽 } </span></p><p><span style="font-family: Monaco; font-size: 12px;">8 聽 聽 聽 聽 return self; </span></p><p><span style="font-family: Monaco; font-size: 12px;">9 } </span></p></pre> </td> </tr> </tbody> </table> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;">榪欐牱綆鍗曠殑灝嗘秷鎭漿鍙戝嚭鍘伙紝浣嗘槸姝ゆ柟寮忔瑺濡ワ紝鐗瑰埆鏄綋寰堝娑堟伅閮借A鏉ュ鐞嗭紝浣嗘槸A鍙堟棤娉曞鐞嗙殑鏃跺欙紝浣犻渶瑕佸疄鐜板悇縐峟un鏉ユ彁渚涙瘡涓縐嶆柟娉曞鐞嗘柟寮忋傚茍涓斿綋鍐欎笅浠g爜鐨勬椂鍊欙紝鎵鑳藉鐞嗙殑娑堟伅闆嗗悎涔熷氨蹇呴』紜畾涓嬫潵錛屼篃灝辨槸璇存槸闈欐佺殑銆?/span></p> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;">鏈変竴縐嶈В鍐蟲柟妗堝彲浠ヨВ鍐蟲闂<em> : </em><span style="color: #666666; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; float: none; font-family: 'Hiragino Sans GB'; font-size: 13px;"><strong>forwardInvocation</strong>錛氭柟娉曪紝姝ゆ柟娉曠戶鎵夸笌NSObject銆備笉榪嘚SObject涓鏂規硶鐨勫疄鐜幫紝鍙槸綆鍗曠殑璋冪敤浜?span style="color: #666666; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; float: none;">doesNotRecognizeSelector:</span></span></span></p> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;"><span style="color: #666666; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; float: none; font-family: 'Hiragino Sans GB'; font-size: 13px;"><span style="color: #666666; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; float: none;">鎴戜滑瑕佸仛鐨勬槸閲嶅啓闇瑕佽漿鍙戞秷鎭殑綾籄鐨?span style="color: #666666; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; font-family: 'Hiragino Sans GB'; font-size: 13px;">forwardInvocation鏂規硶錛屼互瀹炵幇灝嗘秷鎭漿鍙戠粰鑳藉鐞唂un娑堟伅鐨勫璞°?/span></span></span></span></p> <table style="width: 763px; background-color: #f1f5f9; border-collapse: collapse; border: 1px solid #c9d1d7; padding-bottom: 4px; color: #000000; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;" cellspacing="0" cellpadding="6" width="100%" bgcolor="#F1F5F9"> <tbody> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;">- (void)forwardInvocation:(NSInvocation *)anInvocation</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;">{</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"> if ([B respondsToSelector:[anInvocation selector])</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"> [anInvocation B];</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"> else</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"> [super forwardInvocation:anInvocation];</pre> </td> </tr> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="padding: 0.5em;" scope="row"> <pre style="margin: -0.083em 0.333em 0px 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;">}</pre> </td> </tr> </tbody> </table> <p><span style="font-family: 'Hiragino Sans GB'; font-size: 13px;"><span style="color: #666666; font-family: Courier, Consolas, monospace;">榪樻湁鍏抽敭涓姝ワ紝鏄噸鍐?span style="color: #000000; font-family: Arial; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 26px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; display: inline !important; float: none;">methodSignatureForSelector鏂規硶錛屾鏂規硶鏄湪鍚戝璞″彂閫佷笉鑳藉鐞嗙殑娑堟伅鐨勬椂鍊欒皟鐢ㄧ殑錛屾鏂規硶鍙垽鏂秷鎭痜un鏄惁鏈夋晥娉ㄥ唽銆傚鏋滄敞鍐岃繃fun錛岄偅涔堝垯榪斿洖fun娑堟伅鐨勫湴鍧涔嬬被鐨勪俊鎭紝濡傛灉鏃犳晥鍒欒繑鍥瀗il錛岄偅涔堝氨crash鎺夈傛墍浠ユ垜浠鎶奻un娑堟伅娉ㄥ唽涓轟竴涓湁鏁堢殑銆?/span></span></span></p> <table style="cursor: default; width: 763px; background-color: #f1f5f9; border-collapse: collapse; padding-bottom: 4px; color: #000000; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border: 1px solid #c9d1d7;" cellspacing="0" cellpadding="6" width="100%" bgcolor="#F1F5F9"> <tbody> <tr style="border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: #ffffff;"> <td style="cursor: text; padding: 0.5em; margin: 8px; border: 1px dashed #bbbbbb;" scope="row"> <pre style="margin-top: -0.083em; margin-right: 0.333em; margin-bottom: 0px; margin-left: 0.5em; font-size: 12px; font-family: Courier, Consolas, monospace; color: #666666; line-height: 13px; white-space: pre-wrap;"><span style="color: #666666;"><span style="line-height: 13px;"> </span></span><pre style="white-space: pre-wrap; word-wrap: break-word; font-size: 12px; font-family: 'Courier New'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; padding: 0px; margin: 0px;"><span style="color: #008080;"><span style="line-height: 18px;"><pre style="margin: 0px; padding: 0px; white-space: pre-wrap; word-wrap: break-word; font-size: 12px; font-family: 'Courier New'; color: #393939; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;"><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">1</span> - (NSMethodSignature*)methodSignatureForSelector:(SEL)selector<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">2</span> {<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">3</span> NSMethodSignature* signature = [super methodSignatureForSelector:selector];<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">4</span> <br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">5</span> <span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #0000ff;">if</span> (!signature)//濡傛灉鐖剁被涓棤娉ㄥ唽fun娑堟伅錛岄偅涔堝皢B娉ㄥ唽<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">6</span> signature = [B methodSignatureForSelector:selector];<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">7</span> <br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">8</span> <span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #0000ff;">return</span> signature;<br style="margin: 0px; padding: 0px;" /><span style="margin: 0px; padding: 0px; font-family: 'Courier New'; font-size: 12px; line-height: 1.5; color: #008080;">9</span> }</pre> <br /></span></span></pre> </pre> </td> </tr> </tbody> </table> <p>榪欐牱涓鏉ワ紝娑堟伅fun灝嗚杞彂鑷矪銆?/p> <p>鎴戜滑鏉ヨ涓涓嬪悜涓涓璞″彂閫佹秷鎭悗錛岀郴緇熺殑澶勭悊嫻佺▼</p> <p>1.棣栧厛鍙戦佹秷鎭痆A fun];</p> <p>2.緋葷粺浼氭鏌鑳藉惁鍝嶅簲榪欎釜fun娑堟伅錛屽鏋滆兘鍝嶅簲鍒橝鍝嶅簲</p> <p>3.濡傛灉涓嶈兘鍝嶅簲錛屽垯璋冪敤methodSignatureForSelector:鏉ヨ闂繖涓秷鎭槸鍚︽湁鏁堬紝鍖呮嫭鍘葷埗綾諱腑璇㈤棶銆?/p> <p>4.鎺ョ潃璋冪敤forwardInvocation:姝ゆ椂姝ラ涓夎繑鍥瀗il鎴栬呭彲浠ュ鐞嗘秷鎭殑娑堟伅鍦板潃銆傚鏋渘il鍒檆rash錛屽鏋滄湁鍙互澶勭悊fun娑堟伅鐨勫湴鍧錛岄偅涔堣漿鍙戞垚鍔熴?/p> <p>聽</p> <p>聽</p><img src ="http://m.shnenglu.com/cokecoffe/aggbug/175943.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/cokecoffe/" target="_blank">Wangkeke</a> 2012-05-23 22:51 <a href="http://m.shnenglu.com/cokecoffe/archive/2012/05/23/175943.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏁扮粍浣滀負鍑芥暟鍙傛暟http://m.shnenglu.com/cokecoffe/archive/2012/05/11/174517.htmlWangkekeWangkekeThu, 10 May 2012 17:55:00 GMThttp://m.shnenglu.com/cokecoffe/archive/2012/05/11/174517.htmlhttp://m.shnenglu.com/cokecoffe/comments/174517.htmlhttp://m.shnenglu.com/cokecoffe/archive/2012/05/11/174517.html#Feedback0http://m.shnenglu.com/cokecoffe/comments/commentRss/174517.htmlhttp://m.shnenglu.com/cokecoffe/services/trackbacks/174517.html涓銆佷竴緇存暟緇勪綔涓鴻緭鍏ュ弬鏁幫細

澶у閮界煡閬擄紝濡傛灉涓緇存暟緇勪綔涓哄弬鏁?/span>鐨勮瘽錛屽彲浠ユ寜濡備笅鏂規硶鏉ュ畾涔夊嚱鏁幫細

int func(int *array);

鎴栬?/p>

int func(int array[M]); 鍏朵腑M鏄暟緇勭殑澶у皬銆?/p>

浜屻佷簩緇存暟緇勪綔涓鴻緭鍏ュ弬鏁幫細

鑰屽鏋?span style="line-height: normal;">杈撳叆鍙傛暟鏄簩緇存暟緇?/span>鐨勮瘽錛屽彲浠ユ寜濡備笅鏂規硶瀹氫箟錛?/p>

1. 鐩存帴浠ヤ簩緇存暟緇勪綔涓哄弬鏁幫細

int func(int array[M][N]);

鎴栬?int func(int array[][N]);

涔熷氨鏄錛屼簩緇存暟緇勪綔涓哄弬鏁幫紝鍙互鐪佺暐絎竴緇寸殑澶у皬錛屼絾涓嶅彲浠ョ渷鐣ョ浜岀淮鐨勫ぇ灝忥紝鍥犱負緙栬瘧鍣ㄥ湪瀵誨潃鏃舵槸鎸塸 + i * N + j鏉ュp[i][j]榪涜瀵誨潃鐨勶紝鎵浠ョ浜岀淮鍙傛暟蹇呴』緇欏嚭銆?/p>

2. 浠ヤ簩緇存寚閽堜綔涓哄弬鏁幫細

int func(int **array);

鎴戜滑鍙互瀹氫箟浜岀淮鎸囬拡錛岀劧鍚庡鍧鏃舵墜宸ヨ繘琛屽嵆鍙細*((int *)array + i * N + j)錛屽墠闈㈢殑(int *)鏄己鍒惰漿鎹㈡垚鎸囬拡綾誨瀷銆?/p>

Wangkeke 2012-05-11 01:55 鍙戣〃璇勮
]]>
鍑犱釜寮辨櫤C棰?/title><link>http://m.shnenglu.com/cokecoffe/archive/2012/05/05/173769.html</link><dc:creator>Wangkeke</dc:creator><author>Wangkeke</author><pubDate>Sat, 05 May 2012 12:00:00 GMT</pubDate><guid>http://m.shnenglu.com/cokecoffe/archive/2012/05/05/173769.html</guid><wfw:comment>http://m.shnenglu.com/cokecoffe/comments/173769.html</wfw:comment><comments>http://m.shnenglu.com/cokecoffe/archive/2012/05/05/173769.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/cokecoffe/comments/commentRss/173769.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/cokecoffe/services/trackbacks/173769.html</trackback:ping><description><![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px STSong;">浠庣綉涓婁笅浜嗕竴涓狢鐨勭瑪璇曢錛屽彂鐜伴檮甯︾殑絳旀錛屼笉鏄敊鐨勶紝灝辨槸寰堝垵綰х殑浜哄啓鐨勶紝鍙戠幇鐪嬩簡鍗婂ぉ錛屾病鐪嬫噦錛佷簬鏄嚜宸卞啓浜嗕竴涓?/p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px STSong;"> </p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: STSong; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; "><span style="font-family: 'Trebuchet MS'; "><strong>1.緇欏畾涓涓瓧絎︿覆錛岃緭鍑烘湰瀛楃涓蹭腑鍙嚭鐜頒竴嬈″茍涓旀渶闈犲墠鐨勯偅涓瓧絎︾殑浣嶇疆錛?/strong></span></p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; "><span style="font-family: 'Trebuchet MS'; "><strong><span style="font-family: STSong; font-style: normal; font-variant: normal; line-height: normal; font-size: 14px; ">姣斿</span>"abaccddeeef" <span style="font-family: STSong; font-style: normal; font-variant: normal; line-height: normal; font-size: 14px; ">鍒欐槸</span>b<span style="font-family: STSong; font-style: normal; font-variant: normal; line-height: normal; font-size: 14px; ">錛岃緭鍑?/span>2</strong></span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Times;"> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;"><span style="color: #b933a1;">int</span> find_char(<span style="color: #b933a1;">const</span> <span style="color: #b933a1;">char</span> *str)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">int</span> pos[<span style="color: #2934d5;">256</span>];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">const</span> <span style="color: #b933a1;">char</span> *p = str;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px;"> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">if</span>((!str)||!(*str))<span style="color: #008212;">//</span><span style="font: 13.0px 'Heiti SC Light'; color: #008212;">絀烘寚閽堟垨鑰呯┖涓?/span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      <span style="color: #b933a1;">return</span> -<span style="color: #2934d5;">1</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px;"> </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #33595d;">memset</span>(pos,-<span style="color: #2934d5;">1</span>,<span style="color: #b933a1;">sizeof</span>(pos));</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px;"> </p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Menlo; font-size: 13px; font-variant: normal; font-weight: normal; line-height: normal; min-height: 15px; "><em>//閬嶅巻涓閬嶏紝瀛樹笅姣忎釜瀛楁瘝鐨勪綅緗紝濡傛灉瀛樿繃涓嬈★紝灝辨妸浣嶇疆璁劇疆涓?2</em></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">while</span> (*p)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      <span style="color: #b933a1;">if</span> (pos[*p] == -<span style="color: #2934d5;">1</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">         pos[*p] = p - str;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      <span style="color: #b933a1;">else</span></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">         pos[*p] = -<span style="color: #2934d5;">2</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      p++;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   }</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Menlo; font-size: 13px; font-variant: normal; font-weight: normal; line-height: normal; min-height: 15px; "><em>//閬嶅巻瀛樺偍瀛楁瘝浣嶇疆鐨勬暟緇勶紝濡傛灉瀛樻湁浣嶇疆錛屽垯榪斿洖</em></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   p = str;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">while</span> (*p)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      <span style="color: #b933a1;">if</span> (pos[*p]>=<span style="color: #2934d5;">0</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">         <span style="color: #b933a1;">return</span> pos[*p];</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      p++;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;"><span style="color: #b933a1;"><br /></span></p> <p style="font-family: Menlo; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px;">   <span style="color: #b933a1;">return</span> -<span style="color: #2934d5;">1</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">}</p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Menlo; font-size: 13px; font-style: normal; font-variant: normal; line-height: normal; "><strong> </strong></p> <p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: STSong; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; "><strong><span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">2</span>錛岀粰瀹氫竴涓暣鏁幫紝闂繖涓暣鏁拌漿鎴?span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">2</span>榪涘埗鍚庯紝閲岄潰鍖呭惈鏈夊灝戜釜<span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">1</span>錛熸瘮濡傦細<span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">10</span>錛屼簩榪涘埗琛ㄧず涓猴紝<span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">1010</span>鍒欙紝杈撳嚭<span style="font-family: Times; font-size: 12px; font-style: normal; font-variant: normal; line-height: normal; ">2</span></strong></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;"><span style="color: #b933a1;">int</span> howmany(<span style="color: #b933a1;">int</span> x)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">{</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">int</span> count = <span style="color: #2934d5;">0</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">while</span> (x)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      <span style="color: #b933a1;">if</span> ((x&<span style="color: #2934d5;">1</span>) == <span style="color: #2934d5;">1</span>)</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      {</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">         count++;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">      x = x>><span style="color: #2934d5;">1</span>;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   }</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">   <span style="color: #b933a1;">return</span> count;</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo;">}</p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px STSong;"><span style="font: 12.0px Times;"><br /></span></p><img src ="http://m.shnenglu.com/cokecoffe/aggbug/173769.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/cokecoffe/" target="_blank">Wangkeke</a> 2012-05-05 20:00 <a href="http://m.shnenglu.com/cokecoffe/archive/2012/05/05/173769.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://132653.com" target="_blank">久久综合精品国产一区二区三区</a>| <a href="http://56lin.com" target="_blank">国产精品久久久久久av下载红粉 </a>| <a href="http://www515678.com" target="_blank">欧美精品1区2区</a>| <a href="http://hnjlhgw.com" target="_blank">国内精品一区二区三区</a>| <a href="http://mm-777.com" target="_blank">中文网丁香综合网</a>| <a href="http://69kun.com" target="_blank">亚洲国产成人精品久久</a>| <a href="http://329aaa.com" target="_blank">亚洲最新视频在线</a>| <a href="http://yahuake.com" target="_blank">欧美日韩第一区日日骚</a>| <a href="http://023nszz.com" target="_blank">在线视频日韩精品</a>| <a href="http://15013010203.com" target="_blank">亚洲韩国日本中文字幕</a>| <a href="http://hhbz518.com" target="_blank">国产精品久久久久久久电影 </a>| <a href="http://ategpu.com" target="_blank">性欧美xxxx大乳国产app</a>| <a href="http://ww4477.com" target="_blank">久久婷婷久久</a>| <a href="http://shalxee.com" target="_blank">久久婷婷国产麻豆91天堂</a>| <a href="http://lingshidu.com" target="_blank">亚洲国产导航</a>| <a href="http://zhengnuoxin.com" target="_blank">亚洲国产日韩欧美在线动漫</a>| <a href="http://fangsling.com" target="_blank">免费观看成人www动漫视频</a>| <a href="http://playav999.com" target="_blank">一区二区亚洲欧洲国产日韩</a>| <a href="http://www515678.com" target="_blank">红桃视频欧美</a>| <a href="http://7171152.com" target="_blank">亚洲一品av免费观看</a>| <a href="http://9927tv.com" target="_blank">99ri日韩精品视频</a>| <a href="http://mgcc37.com" target="_blank">国内精品一区二区</a>| <a href="http://hh474.com" target="_blank">日韩小视频在线观看专区</a>| <a href="http://yw1998.com" target="_blank">国产亚洲一区二区在线观看</a>| <a href="http://www107aa.com" target="_blank">欧美成人激情视频免费观看</a>| <a href="http://017492.com" target="_blank">欧美亚洲成人免费</a>| <a href="http://080973.com" target="_blank">亚洲激情不卡</a>| <a href="http://kk1xx-com.com" target="_blank">韩日欧美一区二区</a>| <a href="http://95gun.com" target="_blank">这里只有精品丝袜</a>| <a href="http://9niuw.com" target="_blank">午夜一区二区三区不卡视频</a>| <a href="http://bixiuge.com" target="_blank">在线观看av一区</a>| <a href="http://fuwu56.com" target="_blank">亚洲综合欧美日韩</a>| <a href="http://amiee88.com" target="_blank">日韩网站在线看片你懂的</a>| <a href="http://6u6uuu666.com" target="_blank">亚洲摸下面视频</a>| <a href="http://iotbzw.com" target="_blank">亚洲特级毛片</a>| <a href="http://sao320.com" target="_blank">久久一区激情</a>| <a href="http://www-442336.com" target="_blank">久久久久国色av免费观看性色</a>| <a href="http://jiuzuifusheng.com" target="_blank">蜜臀a∨国产成人精品</a>| <a href="http://jxjx11.com" target="_blank">久久久www免费人成黑人精品 </a>| <a href="http://wzlingfeng.com" target="_blank">在线日韩av永久免费观看</a>| <a href="http://www1126v.com" target="_blank">亚洲一区二区动漫</a>| <a href="http://avsemm.com" target="_blank">亚洲欧洲日韩在线</a>| <a href="http://cqrehoo.com" target="_blank">玖玖国产精品视频</a>| <a href="http://45z6.com" target="_blank">欧美暴力喷水在线</a>| <a href="http://97gaoba.com" target="_blank">亚洲国产精品福利</a>| <a href="http://aa224.com" target="_blank">欧美承认网站</a>| <a href="http://sishengnv.com" target="_blank">亚洲国产精选</a>| <a href="http://211186.com" target="_blank">一区二区三区产品免费精品久久75 </a>| <a href="http://www-13978.com" target="_blank">亚洲精品中文字</a>| <a href="http://sese912.com" target="_blank">欧美国产大片</a>| <a href="http://603445.com" target="_blank">中日韩高清电影网</a>| <a href="http://bocai4488.com" target="_blank">亚洲综合色视频</a>| <a href="http://hdsywang.com" target="_blank">国产一区久久</a>| <a href="http://wwwiqiuxia.com" target="_blank">美女精品一区</a>| <a href="http://ncncpa.com" target="_blank">亚洲一区二区三区四区五区黄</a>| <a href="http://www330088.com" target="_blank">亚洲一区一卡</a>| <a href="http://go1818.com" target="_blank">在线观看中文字幕亚洲</a>| <a href="http://miandoctor.com" target="_blank">欧美电影电视剧在线观看</a>| <a href="http://ccc982.com" target="_blank">日韩午夜在线播放</a>| <a href="http://szxrdr.com" target="_blank">国产午夜精品福利</a>| <a href="http://8x1080x.com" target="_blank">欧美伊人久久</a>| <a href="http://wwwby2232.com" target="_blank">亚洲乱码国产乱码精品精天堂 </a>| <a href="http://yymh1056.com" target="_blank">国产精品久久国产三级国电话系列 </a>| <a href="http://szzzzzzz.com" target="_blank">欧美日韩成人综合在线一区二区</a>| <a href="http://97seee.com" target="_blank">亚洲七七久久综合桃花剧情介绍</a>| <a href="http://48488a.com" target="_blank">亚洲一区二区三区色</a>| <a href="http://88844401.com" target="_blank">亚洲福利视频一区</a>| <a href="http://yishangsh.com" target="_blank">亚洲激情视频在线播放</a>| <a href="http://haole081.com" target="_blank">国产美女精品免费电影</a>| <a href="http://by99969.com" target="_blank">久久性色av</a>| <a href="http://50ud.com" target="_blank">亚洲一二区在线</a>| <a href="http://xhamster0.com" target="_blank">欧美激情亚洲自拍</a>| <a href="http://pfpf662.com" target="_blank">女人色偷偷aa久久天堂</a>| <a href="http://7885888.com" target="_blank">午夜在线视频一区二区区别</a>| <a href="http://ythbhg.com" target="_blank">亚洲精品一二</a>| <a href="http://ddh345.com" target="_blank">一区二区三区无毛</a>| <a href="http://66636by.com" target="_blank">国产麻豆91精品</a>| <a href="http://shwazrbjd.com" target="_blank">欧美日韩精品免费观看视一区二区</a>| <a href="http://baixinlocal.com" target="_blank">亚洲在线视频观看</a>| <a href="http://www515678.com" target="_blank">亚洲美女在线国产</a>| <a href="http://www49773.com" target="_blank">久久噜噜噜精品国产亚洲综合</a>| <a href="http://ximaimicro.com" target="_blank">99视频在线观看一区三区</a>| <a href="http://www89999.com" target="_blank">亚洲日本中文字幕区</a>| <a href="http://ncyy4.com" target="_blank">在线欧美不卡</a>| <a href="http://www1122fu.com" target="_blank">国产综合香蕉五月婷在线</a>| <a href="http://www-xj788.com" target="_blank">欧美日韩国产美</a>| <a href="http://www55avav.com" target="_blank">欧美色精品天天在线观看视频</a>| <a href="http://win-mdk.com" target="_blank">美国十次成人</a>| <a href="http://rljyy.com" target="_blank">久久精品国产96久久久香蕉 </a>| <a href="http://xunlei520.com" target="_blank">国语自产精品视频在线看抢先版结局</a>| <a href="http://6399128.com" target="_blank">老妇喷水一区二区三区</a>| <a href="http://099553.com" target="_blank">久久精品30</a>| <a href="http://xyyssa.com" target="_blank">欧美第一黄色网</a>| <a href="http://ynjzwh.com" target="_blank">欧美福利一区二区</a>| <a href="http://xiaofan123.com" target="_blank">亚洲国产日韩欧美</a>| <a href="http://4tobi.com" target="_blank">亚洲激情在线播放</a>| <a href="http://012928.com" target="_blank">亚洲国产成人在线</a>| <a href="http://339254.com" target="_blank">亚洲精品午夜</a>| <a href="http://www35211.com" target="_blank">亚洲性色视频</a>| <a href="http://winkwink333.com" target="_blank">欧美亚洲在线观看</a>| <a href="http://htzhuanli.com" target="_blank">欧美a级大片</a>| <a href="http://www101804.com" target="_blank">欧美日韩三级一区二区</a>| <a href="http://www-188444.com" target="_blank">欧美日韩免费一区二区三区视频</a>| <a href="http://yjdm139.com" target="_blank">欧美精品123区</a>| <a href="http://556995.com" target="_blank">国产精品自在线</a>| <a href="http://nvpuow.com" target="_blank">亚洲人成网在线播放</a>| <a href="http://wwwavzz.com" target="_blank">亚洲天堂av综合网</a>| <a href="http://9113c.com" target="_blank">另类综合日韩欧美亚洲</a>| <a href="http://www13256.com" target="_blank">亚洲区一区二</a>| <a href="http://710691.com" target="_blank">亚洲黄一区二区三区</a>| <a href="http://hczztj.com" target="_blank">中文在线资源观看网站视频免费不卡 </a>| <a href="http://www5909.com" target="_blank">久久视频一区二区</a>| <a href="http://yhc26.com" target="_blank">国产精品久久久久久久久动漫 </a>| <a href="http://dxmdzz.com" target="_blank">亚洲国产精品一区二区三区</a>| <a href="http://2jjzz.com" target="_blank">亚洲一区二区三区中文字幕在线</a>| <a href="http://mm77gg.com" target="_blank">欧美专区在线</a>| <a href="http://www-q28.com" target="_blank">亚洲精品欧洲</a>| <a href="http://wlhtgj.com" target="_blank">女主播福利一区</a>| <a href="http://4008166177.com" target="_blank">国产亚洲精品成人av久久ww</a>| <a href="http://qiaoka526.com" target="_blank">亚洲欧洲三级</a>| <a href="http://tk99444.com" target="_blank">老牛嫩草一区二区三区日本 </a>| <a href="http://868482.com" target="_blank">亚洲综合三区</a>| <a href="http://4186a.com" target="_blank">欧美日韩18</a>| <a href="http://www-49386.com" target="_blank">久久久国产精彩视频美女艺术照福利</a>| <a href="http://6133c.com" target="_blank">欧美经典一区二区三区</a>| <a href="http://609005.com" target="_blank">一区在线影院</a>| <a href="http://www-666638.com" target="_blank">免费美女久久99</a>| <a href="http://7628x.com" target="_blank">一区二区电影免费观看</a>| <a href="http://22400com.com" target="_blank">欧美日本一道本</a>| <a href="http://sp106.com" target="_blank">91久久亚洲</a>| <a href="http://lingshidu.com" target="_blank">欧美大尺度在线观看</a>| <a href="http://o74sokyoss.com" target="_blank">亚洲一区自拍</a>| <a href="http://689657.com" target="_blank">黑人极品videos精品欧美裸</a>| <a href="http://418ch.com" target="_blank">久久先锋资源</a>| <a href="http://wwwhaodd116.com" target="_blank">男人插女人欧美</a>| <a href="http://www-577511.com" target="_blank">99国产一区</a>| <a href="http://88848885.com" target="_blank">在线亚洲一区二区</a>| <a href="http://tzhbsb.com" target="_blank">国产精品青草久久</a>| <a href="http://562595.com" target="_blank">久久五月天婷婷</a>| <a href="http://cao2014.com" target="_blank">久久亚洲综合</a>| <a href="http://caokk1.com" target="_blank">亚洲综合色网站</a>| <a href="http://59199m.com" target="_blank">久久人91精品久久久久久不卡</a>| <a href="http://h7yy.com" target="_blank">亚洲国产日韩在线一区模特</a>| <a href="http://xianjiacf.com" target="_blank">免费在线亚洲欧美</a>| <a href="http://www55avav.com" target="_blank">欧美裸体一区二区三区</a>| <a href="http://988tz.com" target="_blank">亚洲一线二线三线久久久</a>| <a href="http://y66776.com" target="_blank">亚洲欧美在线免费</a>| <a href="http://syddzs.com" target="_blank">在线精品观看</a>| <a href="http://lorgou.com" target="_blank">一区二区三区欧美日韩</a>| <a href="http://1x118.com" target="_blank">激情成人av</a>| <a href="http://zzchanke.com" target="_blank">99视频+国产日韩欧美</a>| <a href="http://ncncpa.com" target="_blank">国内精品久久久久久久果冻传媒</a>| <a href="http://nmbgbc.com" target="_blank">欧美国产精品劲爆</a>| <a href="http://83mmmm.com" target="_blank">国产精品久久久一区二区</a>| <a href="http://y65c.com" target="_blank">欧美激情第一页xxx</a>| <a href="http://ff9222.com" target="_blank">国产精品呻吟</a>| <a href="http://6h8c.com" target="_blank">日韩视频二区</a>| <a href="http://yp8882.com" target="_blank">亚洲乱码国产乱码精品精天堂</a>| <a href="http://www-8438.com" target="_blank">亚洲欧美清纯在线制服</a>| <a href="http://ww9494.com" target="_blank">夜夜嗨av一区二区三区网站四季av</a>| <a href="http://017455.com" target="_blank">午夜欧美大片免费观看</a>| <a href="http://jav1111.com" target="_blank">日韩视频一区二区</a>| <a href="http://jiajianpei.com" target="_blank">久久久久久精</a>| <a href="http://nvpuow.com" target="_blank">久久精品久久99精品久久</a>| <a href="http://www-8438.com" target="_blank">欧美日韩在线大尺度</a>| <a href="http://521nb.com" target="_blank">欧美高清不卡在线</a>| <a href="http://4c7175.com" target="_blank">黑人一区二区三区四区五区</a>| <a href="http://www901aaa.com" target="_blank">一本色道久久综合狠狠躁篇怎么玩</a>| <a href="http://www1982t.com" target="_blank">韩日成人av</a>| <a href="http://xxx6688.com" target="_blank">久久精品国产亚洲一区二区</a>| <a href="http://bkksd.com" target="_blank">欧美人妖在线观看</a>| <a href="http://71oo.com" target="_blank">欧美大色视频</a>| <a href="http://pp88qq.com" target="_blank">亚洲欧洲一区二区在线播放</a>| <a href="http://wwwavtb1122.com" target="_blank">久久aⅴ国产欧美74aaa</a>| <a href="http://444al.com" target="_blank">久久精品国产亚洲5555</a>| <a href="http://zooxoft.com" target="_blank">国产婷婷精品</a>| <a href="http://by3259.com" target="_blank">久久亚洲私人国产精品va</a>| <a href="http://wwwmiya728.com" target="_blank">亚洲欧美日韩另类精品一区二区三区</a>| <a href="http://amass-ic.com" target="_blank">1024国产精品</a>| <a href="http://ss2ssc.com" target="_blank">亚洲最新合集</a>| <a href="http://18av18.com" target="_blank">欧美午夜电影完整版</a>| <a href="http://9lunli.com" target="_blank">亚洲一区二区av电影</a>| <a href="http://3333328.com" target="_blank">欧美激情久久久久</a>| <a href="http://juegold.com" target="_blank">亚洲区欧美区</a>| <a href="http://stt788.com" target="_blank">亚洲性图久久</a>| <a href="http://changjiucf.com" target="_blank">国产亚洲激情在线</a>| <a href="http://tianxiantxtv.com" target="_blank">久久久久欧美</a>| <a href="http://epiegame.com" target="_blank">亚洲乱码国产乱码精品精天堂</a>| <a href="http://8013sf.com" target="_blank">免费在线观看日韩欧美</a>| <a href="http://2312138.com" target="_blank">日韩视频不卡中文</a>| <a href="http://www-699603.com" target="_blank">国产日韩精品视频一区</a>| <a href="http://95gun.com" target="_blank">欧美在线观看视频一区二区三区</a>| <a href="http://92ebook.com" target="_blank">久久精品夜色噜噜亚洲a∨</a>| <a href="http://287975.com" target="_blank">玉米视频成人免费看</a>| <a href="http://junmatek.com" target="_blank">欧美精品在线免费</a>| <a href="http://www901aaa.com" target="_blank">欧美中文在线观看</a>| <a href="http://cnxwlm.com" target="_blank">日韩亚洲精品视频</a>| <a href="http://mathck.com" target="_blank">老牛国产精品一区的观看方式</a>| <a href="http://www11111111.com" target="_blank">亚洲欧洲日本一区二区三区</a>| <a href="http://www8xoy.com" target="_blank">久热国产精品视频</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>