锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产一区二区,欧美色视频日本高清在线观看,狠狠干成人综合网http://www.shnenglu.com/yuqilin1228/category/7165.html璺湪鑴氫笅zh-cnFri, 26 Mar 2010 21:08:52 GMTFri, 26 Mar 2010 21:08:52 GMT60銆怌++甯歌瘑銆慍++鐨刬ostream鏍囧噯搴撲粙緇?/title><link>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110620.html</link><dc:creator>LynnRaymond</dc:creator><author>LynnRaymond</author><pubDate>Fri, 26 Mar 2010 14:03:00 GMT</pubDate><guid>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110620.html</guid><wfw:comment>http://www.shnenglu.com/yuqilin1228/comments/110620.html</wfw:comment><comments>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110620.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/yuqilin1228/comments/commentRss/110620.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/yuqilin1228/services/trackbacks/110620.html</trackback:ping><description><![CDATA[<strong> 涓轟粈涔堥渶瑕乮ostream 鎴戜滑浠庝竴寮濮嬪氨涓鐩村湪鍒╃敤C++鐨勮緭鍏ヨ緭鍑哄湪鍋氱潃鍚勭緇冧範錛岃緭鍏ヨ緭鍑烘槸鐢眎ostream搴撴彁渚涚殑錛屾墍浠ヨ璁烘鏍囧噯搴撴槸鏈夊繀瑕佺殑錛屽畠涓嶤璇█鐨? stdio搴撲笉鍚岋紝瀹冧粠涓寮濮嬪氨鏄敤澶氶噸緇ф壙涓庤櫄鎷熺戶鎵垮疄鐜扮殑闈㈠悜瀵硅薄鐨勫眰嬈$粨鏋勶紝浣滀負涓涓猚++鐨勬爣鍑嗗簱緇勪歡鎻愪緵緇欑▼搴忓憳浣跨敤銆?</strong> <p><strong> 銆銆iostream涓哄唴緗被鍨嬬被鍨嬪璞℃彁渚涗簡杈撳叆杈撳嚭鏀寔錛屽悓鏃朵篃鏀寔鏂囦歡鐨勮緭鍏ヨ緭鍑猴紝綾葷殑璁捐鑰呭彲浠ラ氳繃瀵筰ostream搴? 鐨勬墿灞曪紝鏉ユ敮鎸佽嚜瀹氫箟綾誨瀷鐨勮緭鍏ヨ緭鍑烘搷浣溿?</strong> </p> <p><strong> 銆銆涓轟粈涔堣瑕佹墿灞曟墠鑳芥彁渚涙敮鎸佸憿錛熸垜浠潵涓涓ず渚嬨?%CODE{"cpp"}% #include <stdio.h> #include <iostream></iostream>using namespace std; </strong> </p> <p><strong> class Test { public: Test(int a=0,int b=0) { Test::a=a; Test::b=b; } int a; int b; }; int main() { Test t(100,50); printf("%???",t);//涓嶆槑紜殑杈撳嚭鏍煎紡 scanf("%???",t);//涓嶆槑紜殑杈撳叆鏍煎紡 cout<<t<<endl;//鍚屾牱涓嶅鏄庣‘ cin>>t;//鍚屾牱涓嶅鏄庣‘ system("pause"); } %ENDCODE% 鐢變簬鑷畾涔夌被鐨勭壒孌婃э紝鍦ㄤ笂闈㈢殑浠g爜涓紝鏃犺浣犱嬌鐢╟椋庢牸鐨勮緭鍏ヨ緭鍑猴紝鎴栬呮槸c++鐨勮緭鍏ヨ緭鍑洪兘涓嶆槸涓嶆槑紜殑涓涓〃紺猴紝鐢變簬c璇█娌℃湁榪愮畻絎﹂噸杞芥満 鍒訛紝瀵艱嚧stdio搴撶殑涓嶅彲鎵╁厖鎬э紝璁╂垜浠棤娉曡printf()鍜宻canf()鏀寔瀵硅嚜瀹氫箟綾誨璞$殑鎵╁厖璇嗗埆錛岃宑++鏄彲浠ラ氳繃榪愮畻絎﹂噸杞芥満鍒舵墿鍏? iostream搴撶殑錛屼嬌緋葷粺鑳借兘澶熻瘑鍒嚜瀹氫箟綾誨瀷錛屼粠鑰岃杈撳叆杈撳嚭鏄庣‘鐨勭煡閬撲粬浠騫蹭粈涔堬紝鏍煎紡鏄粈涔堛?</strong> </p> <p><strong> 銆銆鍦ㄤ笂渚嬩腑鎴戜滑涔嬫墍浠ョ敤printf涓巆out榪涜瀵規(guī)瘮鐩殑鏄負浜嗗憡璇夊ぇ瀹訛紝C涓嶤++澶勭悊杈撳叆杈撳嚭鐨勬牴鏈笉鍚岋紝鎴戜滑浠巆榪滅殑杈? 鍏ヨ緭鍑哄彲浠ュ緢鏄庢樉鐪嬪嚭鏄嚱鏁拌皟鐢ㄦ柟寮忥紝鑰宑++鐨勫垯鏄璞℃ā寮忥紝cout鍜宑in鏄痮stream綾誨拰istream綾葷殑瀵硅薄銆?</strong> </p> <h3><a name="2 fstream: ifstream 鍜?ofstream"></a>1 iostream: istream 鍜?ostream </h3> <strong> 銆銆C++涓殑iostream搴撲富瑕佸寘鍚笅鍥炬墍紺虹殑鍑犱釜澶存枃浠? </strong> <table class="twikiTable" border="0" cellpadding="1" cellspacing="1"> <tbody> <tr class="twikiTableEven"> <th class="twikiFirstCol" colspan="2" maxcols="0" bgcolor="#dadada">IOSstream 搴?</th> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> fstream </strong> </td> <td bgcolor="#eaeaea"><strong> iomainip </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> ios </strong> </td> <td bgcolor="#ffffff"><strong> iosfwd </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> iostream </strong> </td> <td bgcolor="#eaeaea"><strong> istream </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> ostream </strong> </td> <td bgcolor="#ffffff"><strong> sstream </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol twikilast" bgcolor="#eaeaea"><strong> streambuf </strong> </td> <td class="twikiLast" bgcolor="#eaeaea"><strong> strstream </strong> </td> </tr> </tbody> </table> <p><strong> 銆銆鎴戜滑鎵鐔熸?zhèn)夌殑杈撳叆杈撳嚭鎿嶄綔鍒嗗埆鏄敱istream(杈撳叆嫻?鍜宱stream(杈撳嚭嫻?榪欎袱涓被鎻愪緵鐨勶紝涓轟簡鍏佽鍙屽悜鐨勮緭鍏ワ紡 杈撳嚭錛岀敱istream鍜宱stream媧劇敓鍑轟簡iostream綾匯?</strong> </p> <p><strong> 銆銆綾葷殑緇ф壙鍏崇郴瑙佷笅鍥撅細<br><img alt="" src="http://www.pconline.com.cn/pcedu/empolder/gj/c/0504/pic/05cppios02.gif"> </strong> </p> <p><strong> iostream搴撳畾涔変簡浠ヤ笅涓変釜鏍囧噯嫻佸璞★細 </strong> </p> <ol> <li><strong> cin錛岃〃紺烘爣鍑嗚緭鍏?standard input)鐨刬stream綾誨璞°俢in浣挎垜浠彲浠ヤ粠璁懼璇誨鏁版嵁銆?</strong> </li> <li><strong> cout錛岃〃紺烘爣鍑嗚緭鍑?standard output)鐨刼stream綾誨璞°俢out浣挎垜浠彲浠ュ悜璁懼杈撳嚭鎴栬呭啓鏁版嵁銆?</strong> </li> <li><strong> cerr錛岃〃紺烘爣鍑嗛敊璇?standard error)鐨刼sttream綾誨璞°俢err鏄鍑虹▼搴忛敊璇秷鎭殑鍦版柟錛屽畠鍙兘鍏佽鍚戝睆騫曡澶囧啓鏁版嵁銆?</strong> </li> </ol> <p><strong> 銆銆杈撳嚭涓昏鐢遍噸杞界殑宸︾Щ鎿嶄綔絎︼紙<<錛夋潵瀹屾垚錛岃緭鍏ヤ富瑕佺敱閲嶈澆鐨勫彸縐繪搷浣滅(>>)瀹屾垚: </strong> </p> <ol> <li><strong> >>a琛ㄧず灝嗘暟鎹斁鍏瀵硅薄涓?</strong> </li> <li><strong> <<a琛ㄧず灝哸瀵硅薄涓瓨鍌ㄧ殑鏁版嵁鎷垮嚭銆?</strong> </li> </ol> <p><strong> 銆銆榪欎簺鏍囧噯鐨勬祦瀵硅薄閮芥湁榛樿鐨勬墍瀵瑰簲鐨勮澶囷紝瑙佷笅琛細<br></strong> <table class="twikiTable" border="0" cellpadding="1" cellspacing="1"> <tbody> <tr class="twikiTableEven"> <th class="twikiFirstCol" maxcols="0" bgcolor="#dadada"><a title="Sort by this column" style="color: #000000;" rel="nofollow"><u>C++瀵硅薄鍚?/u></a> </th> <th maxcols="0" bgcolor="#dadada"><a title="Sort by this column" style="color: #000000;" rel="nofollow"><u>璁懼鍚嶇О</u></a> </th> <th maxcols="0" bgcolor="#dadada"><a title="Sort by this column" style="color: #000000;" rel="nofollow"><u>C涓爣鍑嗚澶囧悕</u></a> </th> <th maxcols="0" bgcolor="#dadada"><a title="Sort by this column" style="color: #000000;" rel="nofollow"><u>榛樿鍚箟</u></a> </th> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" align="middle" bgcolor="#eaeaea"><strong> cin </strong> </td> <td align="middle" bgcolor="#eaeaea"><strong> 閿洏 </strong> </td> <td align="middle" bgcolor="#eaeaea"><strong> stdin </strong> </td> <td align="middle" bgcolor="#eaeaea"><strong> 鏍囧噯杈撳叆 </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" align="middle" bgcolor="#ffffff"><strong> cout </strong> </td> <td align="middle" bgcolor="#ffffff"><strong> 鏄劇ず鍣ㄥ睆騫?</strong> </td> <td align="middle" bgcolor="#ffffff"><strong> stdout </strong> </td> <td align="middle" bgcolor="#ffffff"><strong> 鏍囧噯杈撳嚭 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol twikilast" align="middle" bgcolor="#eaeaea"><strong> cerr </strong> </td> <td class="twikiLast" align="middle" bgcolor="#eaeaea"><strong> 鏄劇ず鍣ㄥ睆騫?</strong> </td> <td class="twikiLast" align="middle" bgcolor="#eaeaea"><strong> stderr </strong> </td> <td class="twikiLast" align="middle" bgcolor="#eaeaea"><strong> 鏍囧噯閿欒杈撳嚭 </strong> </td> </tr> </tbody> </table> <strong> 銆銆涓婅〃涓殑鎰忔濊〃鏄巆in瀵硅薄鐨勯粯璁よ緭鍏ヨ澶囨槸閿洏錛宑out瀵硅薄鐨勯粯璁よ緭鍑鴻澶囨槸鏄劇ず鍣ㄥ睆騫曘?</strong> </p> <p><strong> 銆銆閭d箞鍘熺悊涓婏跡++鏈夋槸濡備綍鍒╃敤cin錛廲out瀵硅薄涓庡乏縐誨拰鍙崇Щ榪愮畻絎﹂噸杞芥潵瀹炵幇杈撳叆杈撳嚭鐨勫憿錛?</strong> </p> <p><strong> 銆銆涓嬮潰鎴戜滑浠ヨ緭鍑轟負渚嬶紝璇存槑鍏跺疄鐜板師鐞嗭細 </strong> </p> <ol> <li><strong> cout鏄痮stream綾葷殑瀵硅薄錛屽洜涓哄畠鎵鎸囧悜鐨勬槸鏍囧噯璁懼錛堟樉紺哄櫒灞忓箷錛夛紝鎵浠ュ畠鍦╥ostream澶存枃浠朵腑浣滀負鍏? 灞瀵硅薄榪涜瀹氫箟銆?</strong> </li> <li><strong> ostream cout(stdout);//鍏墮粯璁ゆ寚鍚戠殑C涓殑鏍囧噯璁懼鍚嶏紝浣滀負鍏舵瀯閫犲嚱鏁扮殑鍙傛暟浣跨敤銆? </strong> </li> <li><strong> 鍦╥ostream.h澶存枃浠朵腑錛宱stream綾誨搴旀瘡涓熀鏈暟鎹被鍨嬮兘鏈夊叾鍙嬪厓鍑芥暟瀵瑰乏縐繪搷浣滅榪涜浜嗗弸 鍏冨嚱鏁扮殑閲嶈澆銆?</strong> <ul> <li><strong> ostream& operator<<(ostream &temp,int source); </strong> </li> <li><strong> ostream& operator<<(ostream &temp,char *ps); </strong> </li> <li><strong> ... 絳夌瓑 </strong> </li> </ul> </li> </ol> <p><strong> 銆銆涓鍙ヨ緭鍑鴻鍙ワ細cout<<"www.cndev-lab.com"錛涳紝浜嬪疄涓婅皟鐢ㄧ殑灝辨槸 ostream& operator<<(ostream &temp,char *ps);榪欎釜榪愮畻絎﹂噸杞藉嚱鏁幫紝鐢變簬榪斿洖鐨勬槸嫻佸璞$殑寮曠敤錛屽紩鐢ㄥ彲浠ヤ綔涓哄乏鍊間嬌鐢紝鎵浠ュ綋紼嬪簭涓湁綾諱技cout<<"www.cndev- lab.com"<<"涓浗杞歡寮鍙戝疄楠屽";榪欐牱鐨勮鍙ュ嚭鐜扮殑鏃跺欙紝灝辮兘澶熸瀯鎴愯繛緇緭鍑恒?</strong> </p> <p><strong> 銆銆鐢變簬iostream搴撲笉鍏夋敮鎸佸璞$殑杈撳叆杈撳嚭錛屽悓鏃朵篃鏀寔鏂囦歡嫻佺殑杈撳叆杈撳嚭錛屾墍浠ュ湪璇︾粏璁茶В宸︾Щ涓庡彸縐昏繍綆楃閲嶈澆鍙墠錛屾垜浠? 鏈夊繀瑕佸厛瀵規(guī)枃浠剁殑杈撳叆杈撳嚭浠ュ強杈撳叆杈撳嚭鐨勬帶鍒剁鏈夋墍浜嗚В銆?</strong> </p> <h3><a name="2 fstream: ifstream 鍜?ofstream"></a>2 fstream: ifstream 鍜? ofstream </h3> <strong> 銆銆鍜屾枃浠舵湁鍏崇郴鐨勮緭鍏ヨ緭鍑虹被涓昏鍦╢stream.h榪欎釜澶存枃浠朵腑琚畾涔夛紝鍦ㄨ繖涓ご鏂囦歡涓富瑕佽瀹氫箟浜嗕笁涓被錛岀敱榪欎笁涓被鎺у埗瀵規(guī)枃浠剁殑 鍚勭杈撳叆杈撳嚭鎿嶄綔錛屼粬浠垎鍒槸ifstream銆乷fstream銆乫stream錛屽叾涓璮stream綾繪槸鐢眎ostream綾繪淳鐢熻屾潵錛屼粬浠箣闂寸殑緇? 鎵垮叧緋昏涓嬪浘鎵紺恒?br><img alt="" src="http://www.pconline.com.cn/pcedu/empolder/gj/c/0504/pic/05cppios04.gif"> </strong> <p><strong> 鐢變簬鏂囦歡璁懼騫朵笉鍍忔樉紺哄櫒灞忓箷涓庨敭鐩橀偅鏍鋒槸鏍囧噯榛樿璁懼錛屾墍浠ュ畠鍦╢stream.h澶存枃浠朵腑鏄病鏈夊儚cout閭f牱棰勫厛瀹氫箟鐨勫叏灞 瀵硅薄錛屾墍浠ユ垜浠繀欏昏嚜宸卞畾涔変竴涓綾葷殑瀵硅薄錛屾垜浠浠ユ枃浠朵綔涓鴻澶囧悜鏂囦歡杈撳嚭淇℃伅(涔熷氨鏄悜鏂囦歡鍐欐暟鎹?錛岄偅涔堝氨搴旇浣跨敤ofstream綾匯?</strong> </p> <p><strong> 銆銆ofstream綾葷殑榛樿鏋勯犲嚱鏁板師褰負錛?%CODE{"cpp"}% ofstream::ofstream(const char *filename,int mode = ios::out,int openprot = filebuf::openprot); %ENDCODE% </strong> </p> <ul> <li><strong> filename錛氥銆瑕佹墦寮鐨勬枃浠跺悕 </strong> </li> <li><strong> mode錛氥銆銆銆瑕佹墦寮鏂囦歡鐨勬柟寮?</strong> </li> <li><strong> prot錛氥銆銆銆鎵撳紑鏂囦歡鐨勫睘鎬?</strong> </li> </ul> <p><strong> 銆銆鍏朵腑mode鍜宱penprot榪欎袱涓弬鏁扮殑鍙夐」琛ㄨ涓嬭〃錛?</strong> <table class="twikiTable" border="0" cellpadding="1" cellspacing="1"> <tbody> <tr class="twikiTableEven"> <td class="twikiFirstCol" colspan="2" align="middle" bgcolor="#eaeaea"><strong> mode 灞炴ц〃 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> ios::app </strong> </td> <td bgcolor="#ffffff"><strong> 浠ヨ拷鍔犵殑鏂瑰紡鎵撳紑鏂囦歡 </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> ios::ate </strong> </td> <td bgcolor="#eaeaea"><strong> 鏂囦歡鎵撳紑鍚庡畾浣嶅埌鏂囦歡灝撅紝ios:app灝卞寘鍚湁姝ゅ睘鎬?</strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> ios::binary </strong> </td> <td bgcolor="#ffffff"><strong> 浠ヤ簩榪涘埗鏂瑰紡鎵撳紑鏂囦歡錛岀己鐪佺殑鏂瑰紡鏄枃鏈柟寮忋備袱縐嶆柟寮忕殑鍖哄埆瑙佸墠鏂?</strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> ios::in </strong> </td> <td bgcolor="#eaeaea"><strong> 鏂囦歡浠ヨ緭鍏ユ柟寮忔墦寮 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> ios::out </strong> </td> <td bgcolor="#ffffff"><strong> 鏂囦歡浠ヨ緭鍑烘柟寮忔墦寮 </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol twikilast" bgcolor="#eaeaea"><strong> ios::trunc </strong> </td> <td class="twikiLast" bgcolor="#eaeaea"><strong> 濡傛灉鏂囦歡瀛樺湪錛屾妸鏂囦歡闀垮害璁句負0 </strong> </td> </tr> </tbody> </table> <strong> 銆銆鍙互鐢?#8220;鎴?#8221;鎶婁互涓婂睘鎬ц繛鎺ヨ搗鏉ワ紝濡俰os::out|ios::binary銆?</strong> <table class="twikiTable" border="0" cellpadding="1" cellspacing="1"> <tbody> <tr class="twikiTableEven"> <td class="twikiFirstCol" colspan="2" align="middle" bgcolor="#eaeaea"><strong> openprot 灞炴ц〃 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> 灞炴?</strong> </td> <td align="middle" bgcolor="#ffffff"><strong> 鍚箟 </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> 0 </strong> </td> <td bgcolor="#eaeaea"><strong> 鏅氭枃浠訛紝鎵撳紑璁塊棶 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol" bgcolor="#ffffff"><strong> 1 </strong> </td> <td bgcolor="#ffffff"><strong> 鍙鏂囦歡 </strong> </td> </tr> <tr class="twikiTableEven"> <td class="twikiFirstCol" bgcolor="#eaeaea"><strong> 2 </strong> </td> <td bgcolor="#eaeaea"><strong> 闅愬惈鏂囦歡 </strong> </td> </tr> <tr class="twikiTableOdd"> <td class="twikiFirstCol twikilast" bgcolor="#ffffff"><strong> 4 </strong> </td> <td class="twikiLast" bgcolor="#ffffff"><strong> 緋葷粺鏂囦歡 </strong> </td> </tr> </tbody> </table> <strong> 銆銆鍙互鐢?#8220;鎴?#8221;鎴栬?#8220;+”鎶婁互涓婂睘鎬ц繛鎺ヨ搗鏉?錛屽3鎴?|2灝辨槸浠ュ彧璇誨拰闅愬惈灞炴ф墦寮鏂囦歡銆?</strong> </p> <p><strong> 瀹炰緥浠g爜濡備笅錛?%CODE{"cpp"}% #include <fstream></fstream>using namespace std; </strong> </p> <p><strong> int main() { ofstream myfile("c:\\1.txt",ios::out|ios::trunc,0); myfile<<"涓浗杞歡寮鍙戝疄楠屽"<<endl<<"緗戝潃錛?<<"www.cndev- lab.com"; myfile.close() system("pause"); } %ENDCODE% 鏂囦歡浣跨敤瀹屽悗鍙互浣跨敤close鎴愬憳鍑芥暟鍏抽棴鏂囦歡銆?</strong> </p> <p><strong> 銆銆ios::app涓鴻拷鍔犳ā寮忥紝鍦ㄤ嬌鐢ㄨ拷鍔犳ā寮忕殑鏃跺欏悓鏃惰繘琛屾枃浠剁姸鎬佺殑鍒ゆ柇鏄竴涓瘮杈冨ソ鐨勪範鎯?</strong> </p> <p><strong> 銆銆紺轟緥濡備笅錛?</strong> </p> <p><strong> %CODE{"cpp"}% #include <iostream></iostream>#include <fstream></fstream>using namespace std; int main() { ofstream myfile("c:\\1.txt",ios::app,0); if(myfile)//鎴栬呭啓鎴恗yfile.fail() { cout<<"鏂囦歡鎵撳紑澶辮觸錛岀洰鏍囨枃浠剁姸鎬佸彲鑳戒負鍙錛?; system("pause"); exit(1); } myfile<<"涓浗杞歡寮鍙戝疄楠屽"<<endl<<"緗戝潃錛?<<"www.cndev- lab.com"<<endl; myfile.close(); } %ENDCODE% </strong> </p> <p><strong> 銆銆鍦ㄥ畾涔塱fstream鍜宱fstream綾誨璞$殑鏃跺欙紝鎴戜滑涔熷彲浠ヤ笉鎸囧畾鏂囦歡銆備互鍚庡彲浠ラ氳繃鎴愬憳鍑芥暟open()鏄懼紡鐨勬妸涓 涓枃浠惰繛鎺ュ埌涓涓被瀵硅薄涓娿?</strong> </p> <p><strong> 銆銆渚嬪錛?</strong> </p> <p><strong> %CODE{"cpp"}% #include <iostream></iostream>#include <fstream></fstream>using namespace std; int main() { ofstream myfile; myfile.open("c:\\1.txt",ios::out|ios::app,0); if(myfile)//鎴栬呭啓鎴恗yfile.fail() { cout<<"鏂囦歡鍒涘緩澶辮觸,紓佺洏涓嶅彲鍐欐垨鑰呮枃浠朵負鍙!"; system("pause"); exit(1); } myfile<<"涓浗杞歡寮鍙戝疄楠屽"<<endl<<"緗戝潃錛?<<"www.cndev- lab.com"<<endl; myfile.close(); } %ENDCODE% 涓嬮潰鎴戜滑鏉ョ湅涓涓嬫槸濡備綍鍒╃敤ifstream綾誨璞★紝灝嗘枃浠朵腑鐨勬暟鎹鍙栧嚭鏉ワ紝鐒跺悗鍐嶈緭鍑哄埌鏍囧噯璁懼涓殑渚嬪瓙銆?</strong> </p> <p><strong> 銆銆浠g爜濡備笅錛?%CODE{"cpp"}% #include <iostream></iostream>#include <fstream></fstream>#include <string></string>using namespace std; int main() { ifstream myfile; myfile.open("c:\\1.txt",ios::in,0); if(myfile) { cout<<"鏂囦歡璇婚敊璇?; system("pause"); exit(1); } char ch; string content; while(myfile.get(ch)) { content+=ch; cout.put(ch);//cout<<ch;榪欎箞鍐欎篃鏄彲浠ョ殑 } myfile.close(); cout<<content; system("pause"); } %ENDCODE% 涓婁緥涓紝鎴戜滑鍒╃敤鎴愬憳鍑芥暟get()錛岄愪竴鐨勮鍙栨枃浠朵腑鐨勬湁鏁堝瓧絎︼紝鍐嶅埄鐢╬ut()鎴愬憳鍑芥暟錛屽皢鏂囦歡涓殑鏁版嵁閫氳繃寰幆閫愪竴杈撳嚭鍒版爣鍑嗚澶?灞忓箷) 涓婏紝 get()鎴愬憳鍑芥暟浼氬湪鏂囦歡璇誨埌榛樺熬鐨勬椂鍊欒繑鍥炲亣鍊鹼紝鎵浠ユ垜浠彲浠ュ埄鐢ㄥ畠鐨勮繖涓壒鎬т綔涓簑hile寰幆鐨勭粓姝㈡潯浠訛紝鎴戜滑鍚屾椂涔熷湪涓婁緥涓紩鍏ヤ簡C++椋庢牸鐨? 瀛楃涓茬被鍨媠tring錛屽湪寰幆璇誨彇鐨勬椂鍊欓愪竴淇濆瓨鍒癱ontent涓紝瑕佷嬌鐢╯tring綾誨瀷錛屽繀欏誨寘鍚玸tring.h鐨勫ご鏂囦歡銆?</strong> </p> <p><strong>  </strong> </p> <p><strong> 鎴戜滑鍦ㄧ畝鍗曚粙緇嶈繃ofstream綾誨拰ifstream綾誨悗錛屾垜浠啀鏉ョ湅涓涓媐stream綾伙紝fstream綾繪槸鐢? iostream媧劇敓鑰屾潵錛宖stream綾誨璞″彲浠ュ悓瀵規(guī)枃浠惰繘琛岃鍐欐搷浣溿?</strong> </p> <p><strong> 銆銆紺轟緥浠g爜濡備笅錛?%CODE{"cpp"}% #include <iostream></iostream>#include <fstream></fstream>using namespace std; int main() { fstream myfile; myfile.open("c:\\1.txt",ios::out|ios::app,0); if(myfile) { cout<<"鏂囦歡鍐欓敊璇?鏂囦歡灞炴у彲鑳戒負鍙!"<<endl; system("pause"); exit(1); } myfile<<"涓浗杞歡寮鍙戝疄楠屽"<<endl<<"緗戝潃錛?<<"www.cndev- lab.com"<<endl; myfile.close(); </strong> </p> <p><strong> myfile.open("c:\\1.txt",ios::in,0); if(myfile) { cout<<"鏂囦歡璇婚敊璇?鏂囦歡鍙兘涓㈠け!"<<endl; system("pause"); exit(1); } char ch; while(myfile.get(ch)) { cout.put(ch); } myfile.close(); system("pause"); } %ENDCODE% 鐢變簬fstream綾誨彲浠ュ鏂囦歡鍚屾椂榪涜璇誨啓鎿嶄綔錛屾墍浠ュ瀹冪殑瀵硅薄榪涜鍒濆璇濈殑鏃跺欎竴瀹氳鏄懼紡鐨勬寚瀹歮ode鍜宱penprot鍙傛暟銆?</strong> </p> <p><strong> 銆銆鎺ヤ笅鏉ユ垜浠潵瀛︿範涓涓嬩覆嫻佺被鐨勫熀紜鐭ヨ瘑錛屼粈涔堝彨涓叉祦綾伙紵 </strong> </p> <h3><a name="3 strstream: ostrstream 鍜?istrs"></a>3 strstream: ostrstream 鍜?istrstream </h3> <strong> 銆銆綆鍗曠殑鐞嗚В灝辨槸鑳藉鎺у埗瀛楃涓茬被鍨嬪璞¤繘琛岃緭鍏ヨ緭鍑虹殑綾伙紝C++涓嶅厜鍙互鏀寔C++椋庢牸鐨勫瓧絎︿覆嫻佹帶鍒訛紝榪樺彲浠ユ敮鎸丆椋庢牸鐨勫瓧絎︿覆嫻? 鎺у埗銆?</strong> <p><strong> 銆銆鎴戜滑鍏堢湅鐪嬬湅C++鏄浣曞C椋庢牸鐨勫瓧絎︿覆嫻佽繘琛屾帶鍒剁殑錛孋涓殑瀛楃涓插叾瀹炰篃灝辨槸瀛楃鏁扮粍錛屽瓧絎︽暟緇勫唴鐨勬暟鎹湪鍐呭瓨涓殑浣嶇疆鐨? 鎺掑垪鏄繛緇殑錛屾垜浠氬父鐢?char str[size]鎴栬卌har *str鐨勬柟寮忓0鏄庡垱寤篊椋庢牸瀛楃鏁扮粍錛屼負浜嗚兘璁╁瓧絎︽暟緇勪綔涓鴻澶囧茍鎻愪緵杈撳叆杈撳嚭鎿嶄綔錛孋++寮曞叆浜唎strstream銆乮strstream銆? strstream榪欎笁涓被錛岃浣跨敤浠栦滑鍒涘緩瀵硅薄灝卞繀欏誨寘鍚玸trstream.h澶存枃浠躲?</strong> </p> <ul> <li><strong> istrstream綾葷敤浜庢墽琛孋椋庢牸鐨勪覆嫻佺殑杈撳叆鎿嶄綔錛屼篃灝辨槸浠ュ瓧絎︿覆鏁扮粍浣滀負杈撳叆璁懼銆?</strong> </li> <li><strong> ostrstream綾葷敤浜庢墽琛孋椋庢牸鐨勪覆嫻佺殑杈撳嚭鎿嶄綔錛屼篃灝辨槸涓瀛楃涓叉暟緇勪綔涓鴻緭鍑鴻澶囥?</strong> </li> <li><strong> strstream綾誨悓鏃跺彲浠ユ敮鎸丆椋庢牸鐨勪覆嫻佺殑杈撳叆杈撳嚭鎿嶄綔銆?</strong> </li> </ul> <p><strong> 銆銆istrstream綾繪槸浠巌stream錛堣緭鍏ユ祦綾伙級鍜宻trstreambase錛堝瓧絎︿覆嫻佸熀綾伙級媧劇敓鑰? 鏉ワ紝ostrstream鏄粠 ostream錛堣緭鍑烘祦綾伙級鍜宻trstreambase錛堝瓧絎︿覆嫻佸熀綾伙級媧劇敓鑰屾潵錛宻trstream鍒欐槸浠巌ostream(杈撳叆杈撳嚭嫻佺被)鍜屽拰 strstreambase錛堝瓧絎︿覆嫻佸熀綾伙級媧劇敓鑰屾潵銆?</strong> </p> <p><strong> 銆銆浠栦滑鐨勭戶鎵垮叧緋誨涓嬪浘鎵紺?<br><img alt="" src="http://www.pconline.com.cn/pcedu/empolder/gj/c/0504/pic/05cppios05.gif"> </strong> </p> <p><strong> 銆銆涓叉祦鍚屾牱涓嶆槸鏍囧噯璁懼錛屼笉浼氭湁棰勫厛瀹氫箟濂界殑鍏ㄥ眬瀵硅薄錛屾墍浠ヤ笉鑳界洿鎺ユ搷浣滐紝闇瑕侀氳繃鏋勯犲嚱鏁板垱寤哄璞°?</strong> </p> <p><strong> 綾籭strstream鐨勬瀯閫犲嚱鏁板師褰㈠涓嬶細 %CODE{"cpp"}% istrstream::istrstream(const char *str,int size); %ENDCODE% 鍙傛暟1琛ㄧず瀛楃涓叉暟緇?鑰屽弬鏁?琛ㄧず鏁扮粍澶у皬錛屽綋size涓?鏃訛紝琛ㄧずistrstream綾誨璞$洿鎺ヨ繛鎺ュ埌鐢眘tr鎵鎸囧悜鐨勫唴瀛樼┖闂村茍浠0緇撳熬鐨? 瀛楃涓層?</strong> </p> <p><strong> 銆銆涓嬮潰鐨勭ず渚嬩唬鐮佸氨鏄埄鐢╥strstream綾誨垱寤虹被瀵硅薄錛屽埗瀹氭祦杈撳叆璁懼涓哄瓧絎︿覆鏁扮粍錛岄氳繃瀹冨悜涓涓瓧絎﹀瀷瀵硅薄杈撳叆鏁版嵁銆備唬 鐮佸涓嬶細 %CODE{"cpp"}% #include <iostream></iostream>#include <strstream></strstream>using namespace std; int main() { char *name = "www.cndev-lab.com"; int arraysize = strlen(name)+1; istrstream is(name,arraysize); char temp; is>>temp; cout<<temp; system("pause"); } %ENDCODE% 綾籵strstream鐢ㄤ簬鎵ц涓叉祦鐨勮緭鍑猴紝瀹冪殑鏋勯犲嚱鏁板涓嬫墍紺猴細 %CODE{"cpp"}% ostrstream::ostrstream(char *_Ptr,int streamsize,int Mode = ios::out); %ENDCODE% 銆銆絎竴涓弬鏁版槸瀛楃鏁扮粍錛岀浜屼釜鏄鏄庢暟緇勭殑澶у皬錛岀涓変釜鍙傛暟鏄寚鎵撳紑鏂瑰紡銆?</strong> </p> <p><strong> 銆銆鎴戜滑鏉ヤ竴涓ず渚嬩唬鐮侊細 %CODE{"cpp"}% #include <iostream></iostream>#include <strstream></strstream>using namespace std; int main() { int arraysize=1; char *pbuffer=new char[arraysize]; ostrstream ostr(pbuffer,arraysize,ios::out); ostr<<arraysize<<ends;//浣跨敤ostrstream杈撳嚭鍒版祦瀵硅薄鐨勬椂鍊?瑕佺敤ends緇撴潫瀛楃涓? cout<<pbuffer; delete[] pbuffer; system("pause"); } %ENDCODE% 涓婇潰鐨勪唬鐮佷腑錛屾垜浠垱寤轟竴涓猚椋庢牸鐨勪覆嫻佽緭鍑哄璞str錛屾垜浠皢arraysize鍐呯殑鏁版嵁鎴愬姛鐨勪互瀛楃涓茬殑褰㈠紡杈撳嚭鍒頒簡ostr瀵硅薄鎵鎸囧悜鐨? pbuffer鎸囬拡鐨勫爢絀洪棿涓紝pbuffer涔熸鏄垜浠杈撳嚭鐨勫瓧絎︿覆鏁扮粍錛屽湪緇撳熬瑕佷嬌鐢╡nds緇撴潫瀛楃涓詫紝濡傛灉涓嶈繖涔堝仛灝辨湁婧㈠嚭鐨勫嵄闄┿?</strong> </p> <h3><a name="4 stringstream"></a>4 stringstream </h3> <strong> 瀵逛簬stringstream浜嗘潵璇達紝涓嶇敤鎴戝璇達紝澶у涔熷凡緇忕煡閬撳畠鏄敤浜嶤++椋庢牸鐨勫瓧絎︿覆鐨勮緭鍏ヨ緭鍑虹殑銆? stringstream鐨勬瀯閫犲嚱鏁板師褰㈠涓嬶細 %CODE{"cpp"}% 銆銆stringstream::stringstream(string str); %ENDCODE% 銆銆紺轟緥浠g爜濡備笅: %CODE{"cpp"}% #include <iostream></iostream>#include <sstream></sstream>#include <string></string>using namespace std; </strong> <p><strong> int main() { stringstream ostr("ccc"); ostr.put('d'); ostr.put('e'); ostr<<"fg"; string gstr = ostr.str(); cout<<gstr<<endl; </strong> </p> <p><strong> char a; ostr>>a; cout<<a </strong> </p> <p><strong> system("pause"); } %ENDCODE% 闄ゆ鑰屽錛宻tringstream綾葷殑瀵硅薄鎴戜滑榪樺父鐢ㄥ畠榪涜string涓庡悇縐嶅唴緗被鍨嬫暟鎹箣闂寸殑杞崲銆傜ず渚嬩唬鐮佸涓嬶細 %CODE{"cpp"}% #include <iostream></iostream>#include <sstream></sstream>#include <string></string>using namespace std; </strong> </p> <p><strong> int main() { stringstream sstr; //--------int杞瑂tring----------- int a=100; string str; sstr<<a; sstr>>str; cout<<str<<endl; //--------string杞琧har[]-------- sstr.clear();//濡傛灉浣犳兂閫氳繃浣跨敤鍚屼竴stringstream瀵硅薄瀹炵幇澶氱綾誨瀷鐨勮漿鎹紝璇鋒敞鎰忓湪姣忎竴嬈¤漿鎹箣鍚庨兘蹇呴』璋冪敤clear() 鎴愬憳鍑芥暟銆?string name = "colinguan"; char cname[200]; sstr<<name; sstr>>cname; cout<<cname; system("pause"); } %ENDCODE% 鎺ヤ笅鏉ユ垜浠潵瀛︿範涓涓嬭緭鍏?杈撳嚭鐨勭姸鎬佹爣蹇楃殑鐩稿叧鐭ヨ瘑. </strong> </p> <h3><a name="5 io_state 杈撳叆/杈撳嚭鐨勭姸鎬佹爣蹇?></a>5 io_state 杈撳叆/杈撳嚭鐨勭姸鎬佹爣蹇?</h3> <strong> C++涓礋璐g殑杈撳叆/杈撳嚭鐨勭郴緇熷寘鎷簡鍏充簬姣忎竴涓緭鍏?杈撳嚭鎿嶄綔鐨勭粨鏋滅殑璁板綍淇℃伅銆傝繖浜涘綋鍓嶇殑鐘舵佷俊鎭鍖呭惈鍦╥o_state綾誨瀷鐨勫 璞′腑銆俰o_state鏄竴涓灇涓劇被鍨嬶紙灝卞儚open_mode涓鏍鳳級錛屼互涓嬩究鏄畠鍖呭惈鐨勫箋?</strong> <ul> <li><strong> goodbit 鏃犻敊璇?</strong> </li> <li><strong> Eofbit 宸插埌杈炬枃浠跺熬 </strong> </li> <li><strong> failbit 闈炶嚧鍛界殑杈撳叆/杈撳嚭閿欒錛屽彲鎸藉洖 </strong> </li> <li><strong> badbit銆鑷村懡鐨勮緭鍏?杈撳嚭閿欒,鏃犳硶鎸藉洖 </strong> </li> </ul> <p><strong> 鏈変袱縐嶆柟娉曞彲浠ヨ幏寰楄緭鍏?杈撳嚭鐨勭姸鎬佷俊鎭備竴縐嶆柟娉曟槸閫氳繃璋冪敤rdstate()鍑芥暟錛屽畠?yōu)畣杩斿洖褰撳墠鐘舵佺殑閿欒鏍囪銆備緥濡傦紝鍋囧娌? 鏈変換浣曢敊璇紝鍒檙dstate()浼氳繑鍥瀏oodbit.涓嬩緥紺轟緥錛岃〃紺哄嚭浜唕dstate()鐨勭敤娉曪細 %CODE{"cpp"}% #include <iostream></iostream>using namespace std; </strong> </p> <p><strong> int main() { int a; cin>>a; cout<<cin.rdstate()<<endl; if(cin.rdstate() == ios::goodbit) { cout<<"杈撳叆鏁版嵁鐨勭被鍨嬫紜紝鏃犻敊璇紒"<<endl; } if(cin.rdstate() == ios_base::failbit) { cout<<"杈撳叆鏁版嵁綾誨瀷閿欒錛岄潪鑷村懡閿欒錛屽彲娓呴櫎杈撳叆緙撳啿鍖烘尳鍥烇紒"<<endl; } system("pause"); } %ENDCODE% 銆銆鍙︿竴縐嶆柟娉曞垯鏄嬌鐢ㄤ笅闈換浣曚竴涓嚱鏁版潵媯嫻嬬浉搴旂殑杈撳叆/杈撳嚭鐘舵侊細 %CODE{"cpp"}% bool bad(); bool eof(); bool fail(); bool good(); %ENDCODE% </strong> </p> <p><strong> 銆銆涓嬩緥紺轟緥錛岃〃紺哄嚭浜嗕笂闈㈠悇鎴愬憳鍑芥暟鐨勭敤娉曪細 %CODE{"cpp"}% #include <iostream></iostream>using namespace std; </strong> </p> <p><strong> int main() { int a; cin>>a; cout<<cin.rdstate()<<endl; if(cin.good()) { cout<<"杈撳叆鏁版嵁鐨勭被鍨嬫紜紝鏃犻敊璇紒"<<endl; } if(cin.fail()) { cout<<"杈撳叆鏁版嵁綾誨瀷閿欒錛岄潪鑷村懡閿欒錛屽彲娓呴櫎杈撳叆緙撳啿鍖烘尳鍥烇紒"<<endl; } system("pause"); } %ENDCODE% 濡傛灉閿欒鍙戠敓錛岄偅涔堟祦鐘舵佹棦琚爣璁頒負閿欒錛屼綘蹇呴』娓呴櫎榪欎簺閿欒鐘舵侊紝浠ヤ嬌浣犵殑紼嬪簭鑳芥紜傚綋鍦扮戶緇繍琛屻傝娓呴櫎閿欒鐘舵侊紝闇浣跨敤clear()鍑芥暟銆? 姝ゅ嚱鏁板甫涓涓弬鏁幫紝瀹冩槸浣犲皢瑕佽涓哄綋鍓嶇姸鎬佺殑鏍囧織鍊箋傦紝鍙灝唅os::goodbit浣滀負瀹炲弬銆?</strong> </p> <p><strong> 銆銆紺轟緥浠g爜濡備笅錛?%CODE{"cpp"}% #include <iostream></iostream>using namespace std; </strong> </p> <p><strong> int main() { int a; cin>>a; cout<<cin.rdstate()<<endl; cin.clear(ios::goodbit); cout<<cin.rdstate()<<endl; system("pause"); } %ENDCODE% 閫氬父褰撴垜浠彂鐜拌緭鍏ユ湁閿欏張闇瑕佹敼姝g殑鏃跺欙紝浣跨敤clear()鏇存敼鏍囪涓烘紜悗錛屽悓鏃朵篃闇瑕佷嬌鐢╣et()鎴愬憳鍑芥暟娓呴櫎杈撳叆緙撳啿鍖猴紝浠ヨ揪鍒伴噸澶嶈緭鍏ョ殑鐩? 鐨勩?</strong> </p> <p><strong> 銆銆紺轟緥浠g爜濡備笅錛?%CODE{"cpp"}% #include <iostream></iostream>using namespace std; </strong> </p> <p><strong> int main() { int a; while(1) { cin>>a; if(cin)//鏉′歡鍙敼鍐欎負cin.fail() { cout<<"杈撳叆鏈夐敊!璇烽噸鏂拌緭鍏?<<endl; cin.clear(); cin.get(); } else { cout<<a; break; } } system("pause"); } %ENDCODE% 銆銆鏈鍚庡啀緇欏嚭涓涓鏂囦歡嫻侀敊璇爣璁板鐞嗙殑渚嬪瓙錛屽琺鍥哄涔狅紝浠g爜濡備笅錛? %CODE{"cpp"}% #include <iostream></iostream>#include <fstream></fstream>using namespace std; </strong> </p> <p><strong> int main() { ifstream myfile("c:\\1.txt",ios_base::in,0); if(myfile.fail()) { cout<<"鏂囦歡璇誨彇澶辮觸鎴栨寚瀹氭枃浠朵笉瀛樺湪!"<<endl; } else { char ch; while(myfile.get(ch)) { cout<<ch; } if(myfile.eof()) { cout<<"鏂囦歡鍐呭宸茬粡鍏ㄩ儴璇誨畬"<<endl; } while(myfile.get(ch)) { cout<<ch; } } system("pause"); } %ENDCODE%  </strong> </p> <br> <img src ="http://www.shnenglu.com/yuqilin1228/aggbug/110620.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/yuqilin1228/" target="_blank">LynnRaymond</a> 2010-03-26 22:03 <a href="http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110620.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆怌++甯歌瘑銆慍++杈撳叆杈撳嚭嫻?/title><link>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110619.html</link><dc:creator>LynnRaymond</dc:creator><author>LynnRaymond</author><pubDate>Fri, 26 Mar 2010 14:01:00 GMT</pubDate><guid>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110619.html</guid><wfw:comment>http://www.shnenglu.com/yuqilin1228/comments/110619.html</wfw:comment><comments>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110619.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/yuqilin1228/comments/commentRss/110619.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/yuqilin1228/services/trackbacks/110619.html</trackback:ping><description><![CDATA[<p>C++ 閫氳繃浠ヤ笅鍑犱釜綾繪敮鎸佹枃浠剁殑杈撳叆杈撳嚭錛?/p> <ul> <li>ofstream: 鍐欐搷浣滐紙杈撳嚭錛夌殑鏂囦歡綾?(鐢眔stream寮曠敵鑰屾潵) </li> <li>ifstream: 璇繪搷浣滐紙杈撳叆錛夌殑鏂囦歡綾?鐢眎stream寮曠敵鑰屾潵) </li> <li>fstream: 鍙悓鏃惰鍐欐搷浣滅殑鏂囦歡綾?(鐢眎ostream寮曠敵鑰屾潵) </li> </ul> <p> </p> <h3>鎵撳紑鏂囦歡(Open a file)</h3> <p>瀵硅繖浜涚被鐨勪竴涓璞℃墍鍋氱殑絎竴涓搷浣滈氬父灝辨槸灝嗗畠鍜屼竴涓湡姝g殑鏂囦歡鑱旂郴璧鋒潵錛屼篃灝辨槸璇存墦寮涓涓枃浠躲傝鎵撳紑鐨勬枃浠跺湪紼嬪簭涓敱涓涓祦瀵硅薄 (stream object)鏉ヨ〃紺?(榪欎簺綾葷殑涓涓疄渚? 錛岃屽榪欎釜嫻佸璞℃墍鍋氱殑浠諱綍杈撳叆杈撳嚭鎿嶄綔瀹為檯灝辨槸瀵硅鏂囦歡鎵鍋氱殑鎿嶄綔銆?/p> <p>瑕侀氳繃涓涓祦瀵硅薄鎵撳紑涓涓枃浠訛紝鎴戜滑浣跨敤瀹冪殑鎴愬憳鍑芥暟open()錛?/p> <p><code><font face="NSimsun">void open (const char * filename, openmode mode);</font></code>榪欓噷filename 鏄竴涓瓧絎︿覆錛屼唬琛ㄨ鎵撳紑鐨勬枃浠跺悕錛宮ode 鏄互涓嬫爣蹇楃鐨勪竴涓粍鍚堬細</p> <table border="1" cellpadding="3" cellspacing="0"> <tbody> <tr> <td>ios::in</td> <td>涓鴻緭鍏?璇?鑰屾墦寮 鏂囦歡</td> </tr> <tr> <td>ios::out</td> <td>涓鴻緭鍑?鍐?鑰屾墦寮 鏂囦歡</td> </tr> <tr> <td>ios::ate</td> <td>鍒濆浣嶇疆錛氭枃浠跺熬</td> </tr> <tr> <td>ios::app</td> <td>鎵鏈夎緭鍑洪檮鍔犲湪鏂囦歡 鏈熬</td> </tr> <tr> <td>ios::trunc</td> <td>濡傛灉鏂囦歡宸插瓨鍦ㄥ垯鍏? 鍒犻櫎璇ユ枃浠?/td> </tr> <tr> <td>ios::binary</td> <td>浜岃繘鍒舵柟寮?/td> </tr> </tbody> </table> <p>榪欎簺鏍囪瘑絎﹀彲浠ヨ緇勫悎浣跨敤錛屼腑闂翠互”鎴?#8221;鎿嶄綔絎?|)闂撮殧銆備緥濡傦紝濡傛灉鎴戜滑鎯寵浠ヤ簩榪涘埗鏂瑰紡鎵撳紑鏂囦歡”example.bin” 鏉ュ啓鍏ヤ竴浜涙暟鎹紝鎴戜滑鍙互閫氳繃浠ヤ笅鏂瑰紡璋冪敤鎴愬憳鍑芥暟open錛堬級鏉ュ疄鐜幫細</p> <p><code><font face="NSimsun">ofstream file;<br>file.open ("example.bin", ios::out | ios::app | ios::binary); </font></code>ofstream, ifstream 鍜?fstream鎵鏈夎繖浜涚被鐨勬垚鍛樺嚱鏁皁pen 閮藉寘鍚簡涓涓粯璁ゆ墦寮鏂囦歡鐨勬柟寮忥紝榪欎笁涓被鐨勯粯璁ゆ柟寮忓悇涓嶇浉鍚岋細</p> <table border="1" cellpadding="3" cellspacing="0"> <tbody> <tr> <th>綾?/th> <th>鍙傛暟鐨勯粯璁ゆ柟寮?/th> </tr> <tr> <td>ofstream</td> <td>ios::out | ios::trunc</td> </tr> <tr> <td>ifstream</td> <td>ios::in</td> </tr> <tr> <td>fstream</td> <td>ios::in | ios::out</td> </tr> </tbody> </table> <p>鍙湁褰撳嚱鏁拌璋冪敤鏃舵病鏈夊0鏄庢柟寮忓弬鏁扮殑鎯呭喌涓嬶紝榛樿鍊兼墠浼氳閲囩敤銆傚鏋滃嚱鏁拌璋冪敤鏃跺0鏄庝簡浠諱綍鍙傛暟錛岄粯璁ゅ煎皢琚畬鍏ㄦ敼鍐欙紝鑰屼笉浼氫笌璋冪敤鍙傛暟緇勫悎銆?/p> <p>鐢變簬瀵圭被ofstream, ifstream 鍜?fstream 鐨勫璞℃墍榪涜鐨勭涓涓搷浣滈氬父閮芥槸鎵撳紑鏂囦歡錛岃繖浜涚被閮芥湁涓涓瀯閫犲嚱鏁板彲浠ョ洿鎺ヨ皟鐢╫pen 鍑芥暟錛屽茍鎷ユ湁鍚屾牱鐨勫弬鏁般傝繖鏍鳳紝鎴戜滑灝卞彲浠ラ氳繃浠ヤ笅鏂瑰紡榪涜涓庝笂闈㈠悓鏍風殑瀹氫箟瀵硅薄鍜屾墦寮鏂囦歡鐨勬搷浣滐細</p> <p><code><font face="NSimsun">ofstream file ("example.bin", ios::out | ios::app | ios::binary);</font></code>涓ょ鎵撳紑鏂囦歡鐨勬柟寮忛兘鏄紜殑銆?/p> <p>浣犲彲浠ラ氳繃璋冪敤鎴愬憳鍑芥暟is_open()鏉ユ鏌ヤ竴涓枃浠舵槸鍚﹀凡緇忚欏哄埄鐨勬墦寮浜嗭細</p> <p><code><font face="NSimsun">bool is_open();</font></code>瀹冭繑鍥炰竴涓竷?yōu)?bool) 鍊鹼紝涓虹湡錛坱rue錛変唬琛ㄦ枃浠跺凡緇忚欏哄埄鎵撳紑錛屽亣( false )鍒欑浉鍙嶃?/p> <h3>鍏抽棴鏂囦歡(Closing a file)</h3> <p>褰撴枃浠惰鍐欐搷浣滃畬鎴愪箣鍚庯紝鎴戜滑蹇呴』灝嗘枃浠跺叧闂互浣挎枃浠墮噸鏂板彉涓哄彲璁塊棶鐨勩傚叧闂枃浠墮渶瑕佽皟鐢ㄦ垚鍛樺嚱鏁癱lose()錛屽畠璐熻矗灝嗙紦瀛樹腑鐨勬暟鎹帓鏀懼嚭鏉ュ茍 鍏抽棴鏂囦歡銆傚畠鐨勬牸寮忓緢綆鍗曪細</p> <p><code><font face="NSimsun">void close ();</font></code>榪欎釜鍑芥暟涓鏃﹁璋冪敤錛屽師鍏堢殑嫻? 瀵硅薄(stream object)灝卞彲浠ヨ鐢ㄦ潵鎵撳紑鍏跺畠鐨勬枃浠朵簡錛岃繖涓枃浠朵篃灝卞彲浠ラ噸鏂拌鍏跺畠鐨勮繘紼?process)鎵鏈夎闂簡銆?/p> <p>涓洪槻姝㈡祦瀵硅薄琚攢姣佹椂榪樿仈緋葷潃鎵撳紑鐨勬枃浠訛紝鏋愭瀯鍑芥暟(destructor)灝嗕細鑷姩璋冪敤鍏抽棴鍑芥暟close銆?/p> <h3>鏂囨湰鏂囦歡(Text mode files)</h3> <p>綾籵fstream, ifstream 鍜宖stream 鏄垎鍒粠ostream, istream 鍜宨ostream 涓紩鐢寵屾潵鐨勩傝繖灝辨槸涓轟粈涔?fstream 鐨勫璞″彲浠ヤ嬌鐢ㄥ叾鐖剁被鐨勬垚鍛樻潵璁塊棶鏁版嵁銆?/p> <p>涓鑸潵璇達紝鎴戜滑灝嗕嬌鐢ㄨ繖浜涚被涓庡悓鎺у埗鍙?console)浜や簰鍚屾牱鐨勬垚鍛樺嚱鏁?cin 鍜? cout)鏉ヨ繘琛岃緭鍏ヨ緭鍑恒傚涓嬮潰鐨勪緥棰樻墍紺猴紝鎴戜滑浣跨敤閲嶈澆鐨勬彃鍏ユ搷浣滅<<錛?/p> <table border="2" cellpadding="1" cellspacing="1" width="400"> <tbody> <tr> <td><font color="#008000">// writing on a text file</font><br>#include <fiostream.h>int main () {<br>ofstream examplefile (”example.txt”);<br>if (examplefile.is_open()) {<br>examplefile << “This is a line.\n”;<br>examplefile << “This is another line.\n”;<br>examplefile.close();<br>}<br>return 0;<br>}</td> <td><font color="#008000">file example.txt<br></font>This is a line.<br>This is another line.</td> </tr> </tbody> </table> <p>浠庢枃浠朵腑璇誨叆鏁版嵁涔熷彲浠ョ敤涓?cin鐨勪嬌鐢ㄥ悓鏍風殑鏂規(guī)硶錛?/p> <table border="2" cellpadding="1" cellspacing="1" width="400"> <tbody> <tr> <td><font color="#008000">// reading a text file</font><br>#include <iostream.h><br>#include <fstream.h><br>#include <stdlib.h>int main () {<br>char buffer[256];<br>ifstream examplefile (”example.txt”);<br>if (! examplefile.is_open())<br>{ cout << “Error opening file”; exit (1); }<br>while (! examplefile.eof() ) {<br>examplefile.getline (buffer,100);<br>cout << buffer << endl;<br>}<br>return 0;<br>}</td> <td>This is a line.<br>This is another line.</td> </tr> </tbody> </table> <p>涓婇潰鐨勪緥瀛愯鍏ヤ竴涓枃鏈枃浠剁殑鍐呭錛岀劧鍚庡皢瀹冩墦鍗板埌灞忓箷涓娿傛敞鎰忔垜浠嬌鐢ㄤ簡涓涓柊鐨勬垚鍛樺嚱鏁板彨鍋歟of 錛屽畠鏄痠fstream 浠庣被 ios 涓戶鎵胯繃鏉ョ殑錛屽綋鍒拌揪鏂囦歡鏈熬鏃惰繑鍥瀟rue 銆?/p> <h3>鐘舵佹爣蹇楃鐨勯獙璇?Verification of state flags)</h3> <p>闄や簡eof()浠ュ錛岃繕鏈変竴浜涢獙璇佹祦鐨勭姸鎬佺殑鎴愬憳鍑芥暟錛堟墍鏈夐兘榪斿洖bool鍨嬭繑鍥炲鹼級錛?/p> <ul> <li><strong> bad()</strong> 濡傛灉鍦ㄨ鍐欒繃紼嬩腑鍑洪敊錛岃繑鍥?true 銆備緥濡傦細褰撴垜浠瀵逛竴涓笉鏄墦寮涓哄啓鐘舵佺殑鏂囦歡榪涜鍐欏叆鏃訛紝鎴栬呮垜浠鍐欏叆鐨勮澶囨病鏈夊墿浣欑┖闂寸殑鏃跺欍? </li> <li><strong> fail()</strong> 闄や簡涓巄ad() 鍚屾牱鐨勬儏鍐典笅浼氳繑鍥?true 浠ュ錛屽姞涓婃牸寮忛敊璇椂涔熻繑鍥瀟rue 錛屼緥濡傚綋鎯寵璇誨叆涓涓暣鏁幫紝鑰岃幏寰椾簡涓涓瓧姣嶇殑鏃跺欍? </li> <li><strong> eof()</strong> 濡傛灉璇繪枃浠跺埌杈炬枃浠舵湯灝撅紝榪斿洖true銆? </li> <li><strong> good()</strong> 榪欐槸鏈閫氱敤鐨勶細濡傛灉璋冪敤浠ヤ笂浠諱綍涓涓嚱鏁拌繑鍥瀟rue 鐨勮瘽錛屾鍑芥暟榪斿洖 false 銆?</li> </ul> <p>瑕佹兂閲嶇疆浠ヤ笂鎴愬憳鍑芥暟鎵媯鏌ョ殑鐘舵佹爣蹇楋紝浣犲彲浠ヤ嬌鐢ㄦ垚鍛樺嚱鏁癱lear()錛屾病鏈夊弬鏁般?/p> <h3>鑾峰緱鍜岃緗祦鎸囬拡(get and put stream pointers)</h3> <p>鎵鏈夎緭鍏?杈撳嚭嫻佸璞?i/o streams objects)閮芥湁鑷沖皯涓涓祦鎸囬拡錛?/p> <ul> <li>ifstream錛?綾諱技istream, 鏈変竴涓縐頒負get pointer鐨勬寚閽堬紝鎸囧悜涓嬩竴涓皢琚鍙栫殑鍏冪礌銆? </li> <li>ofstream, 綾諱技 ostream, 鏈変竴涓寚閽?put pointer 錛屾寚鍚戝啓鍏ヤ笅涓涓厓绱犵殑浣嶇疆銆? </li> <li>fstream, 綾諱技 iostream, 鍚屾椂緇ф壙浜唃et 鍜?put </li> </ul> <p>鎴戜滑鍙互閫氳繃浣跨敤浠ヤ笅鎴愬憳鍑芥暟鏉ヨ鍑烘垨閰嶇疆榪欎簺鎸囧悜嫻佷腑璇誨啓浣嶇疆鐨勬祦鎸囬拡錛?/p> <ul> <li><strong> tellg() 鍜?tellp()</strong> 榪欎袱涓垚鍛樺嚱鏁頒笉鐢ㄤ紶鍏ュ弬鏁幫紝榪斿洖pos_type 綾誨瀷鐨勫?鏍規(guī)嵁ANSI-C++ 鏍囧噯) 錛屽氨鏄竴涓暣鏁幫紝浠h〃褰撳墠get 嫻佹寚閽堢殑浣嶇疆 (鐢╰ellg) 鎴?put 嫻佹寚閽堢殑浣嶇疆(鐢╰ellp). </li> <li><strong> seekg() 鍜宻eekp()</strong> 榪欏鍑芥暟鍒嗗埆鐢ㄦ潵鏀瑰彉嫻佹寚閽坓et 鍜宲ut鐨勪綅緗備袱涓嚱鏁伴兘琚噸杞戒負涓ょ涓嶅悓鐨勫師鍨嬶細 <p>seekg ( pos_type position );<br>seekp ( pos_type position );</p> <p>浣跨敤榪欎釜鍘熷瀷錛屾祦鎸囬拡琚敼鍙樹負鎸囧悜浠庢枃浠跺紑濮嬭綆楃殑涓涓粷瀵逛綅緗傝姹備紶鍏ョ殑鍙傛暟綾誨瀷涓庡嚱鏁?tellg 鍜宼ellp 鐨勮繑鍥炲肩被鍨嬬浉鍚屻?/p> <p>seekg ( off_type offset, seekdir direction );<br>seekp ( off_type offset, seekdir direction );</p> <p>浣跨敤榪欎釜鍘熷瀷鍙互鎸囧畾鐢卞弬鏁癲irection鍐沖畾鐨勪竴涓叿浣撶殑鎸囬拡寮濮嬭綆楃殑涓涓綅縐?offset)銆傚畠鍙互鏄細</p> <table border="1" cellpadding="3" cellspacing="0"> <tbody> <tr> <td>ios::beg</td> <td>浠庢祦寮濮嬩綅 緗綆楃殑浣嶇Щ</td> </tr> <tr> <td>ios::cur</td> <td>浠庢祦鎸囬拡褰? 鍓嶄綅緗紑濮嬭綆楃殑浣嶇Щ</td> </tr> <tr> <td>ios::end</td> <td>浠庢祦鏈熬澶? 寮濮嬭綆楃殑浣嶇Щ</td> </tr> </tbody> </table> </li> </ul> <p>嫻?鎸囬拡 get 鍜?put 鐨勫煎鏂囨湰鏂囦歡(text file)鍜屼簩榪涘埗鏂囦歡(binary file)鐨勮綆楁柟娉曢兘鏄笉鍚岀殑錛屽洜涓烘枃鏈ā寮忕殑鏂囦歡涓煇浜涚壒孌婂瓧絎﹀彲鑳借淇敼銆傜敱浜庤繖涓師鍥狅紝寤鴻瀵逛互鏂囨湰鏂囦歡妯″紡鎵撳紑鐨勬枃浠舵繪槸浣跨敤seekg 鍜? seekp鐨勭涓縐嶅師鍨嬶紝鑰屼笖涓嶈瀵箃ellg 鎴?tellp 鐨勮繑鍥炲艱繘琛屼慨鏀廣傚浜岃繘鍒舵枃浠訛紝浣犲彲浠ヤ換鎰忎嬌鐢ㄨ繖浜涘嚱鏁幫紝搴旇涓嶄細鏈変換浣曟剰澶栫殑琛屼負浜х敓銆?/p> <p>浠ヤ笅渚嬪瓙浣跨敤榪欎簺鍑芥暟鏉ヨ幏寰椾竴涓簩榪涘埗鏂囦歡鐨勫ぇ灝忥細</p> <table border="2" cellpadding="1" cellspacing="1" width="400"> <tbody> <tr> <td><font color="#008000">// obtaining file size<br><font color="#000000">#include <iostream.h><br>#include <fstream.h></font></font><font color="#008000"><font color="#000000">const char * filename = “example.txt”;</font></font><font color="#008000"><font color="#000000">int main () {<br>long l,m;<br>ifstream file (filename, ios::in|ios::binary);<br>l = file.tellg();<br>file.seekg (0, ios::end);<br>m = file.tellg();<br>file.close();<br>cout << “size of ” << filename;<br>cout << ” is ” << (m-l) << ” bytes.\n”;<br>return 0;<br>}</font></font></td> <td>size of example.txt<br>is 40 bytes.</td> </tr> </tbody> </table> <h3>浜岃繘鍒舵枃浠?Binary files)</h3> <p>鍦ㄤ簩榪涘埗鏂囦歡涓紝浣跨敤<< 鍜?gt;>錛屼互鍙婂嚱鏁幫紙濡俫etline錛夋潵鎿嶄綔絎﹁緭鍏ュ拰杈撳嚭鏁版嵁錛屾病鏈変粈涔堝疄闄呮剰涔夛紝铏界劧瀹冧滑鏄鍚堣娉曠殑銆?/p> <p>鏂?浠舵祦鍖呮嫭涓や釜涓洪『搴忚鍐欐暟鎹壒孌婅璁$殑鎴愬憳鍑芥暟錛歸rite 鍜?read銆傜涓涓嚱鏁?(write) 鏄痮stream 鐨勪竴涓垚鍛樺嚱鏁幫紝閮芥槸琚玱fstream鎵緇ф壙銆傝宺ead 鏄痠stream 鐨勪竴涓垚鍛樺嚱鏁幫紝琚玦fstream 鎵緇ф壙銆傜被 fstream 鐨勫璞″悓鏃舵嫢鏈夎繖涓や釜鍑芥暟銆傚畠浠殑鍘熷瀷鏄細</p> <p>write ( char * buffer, streamsize size );<br>read ( char * buffer, streamsize size );</p> <p>榪欓噷 buffer 鏄竴鍧楀唴瀛樼殑鍦板潃錛岀敤鏉ュ瓨鍌ㄦ垨璇誨嚭鏁版嵁銆傚弬鏁皊ize 鏄竴涓暣鏁板鹼紝琛ㄧず瑕佷粠緙撳瓨錛坆uffer錛変腑璇誨嚭鎴栧啓鍏ョ殑瀛楃鏁般?/p> <table border="2" cellpadding="1" cellspacing="1" width="400"> <tbody> <tr> <td><font color="#008000"><font color="#008000">// reading binary file</font><br><font color="#000000">#include <iostream><br>#include <fstream.h></font></font><font color="#008000"><font color="#000000">const char * filename = “example.txt”;</font></font><font color="#008000"><font color="#000000">int main () {<br>char * buffer;<br>long size;<br>ifstream file (filename, ios::in|ios::binary|ios::ate);<br>size = file.tellg();<br>file.seekg (0, ios::beg);<br>buffer = new char [size];<br>file.read (buffer, size);<br>file.close();</font></font><font color="#008000"><font color="#000000">cout << “the complete file is in a buffer”;</font></font><font color="#008000"><font color="#000000">delete[] buffer;<br>return 0;<br>}</font></font></td> <td>The complete file<br>is in a buffer</td> </tr> </tbody> </table> <h3>緙撳瓨鍜屽悓姝?Buffers and Synchronization)</h3> <p>褰?鎴戜滑瀵規(guī)枃浠舵祦榪涜鎿嶄綔鐨勬椂鍊欙紝瀹冧滑涓庝竴涓猻treambuf 綾誨瀷鐨勭紦瀛?buffer)鑱旂郴鍦ㄤ竴璧楓傝繖涓紦瀛橈紙buffer錛夊疄闄呮槸涓鍧楀唴瀛樼┖闂達紝浣滀負嫻?stream)鍜岀墿鐞嗘枃浠剁殑濯掍粙銆備緥濡傦紝瀵逛簬涓涓緭鍑烘祦錛? 姣忔鎴愬憳鍑芥暟put (鍐欎竴涓崟涓瓧絎?琚皟鐢紝榪欎釜瀛楃涓嶆槸鐩存帴琚啓鍏ヨ杈撳嚭嫻佹墍瀵瑰簲鐨勭墿鐞嗘枃浠朵腑鐨勶紝鑰屾槸棣栧厛琚彃鍏ュ埌璇ユ祦鐨勭紦瀛橈紙buffer錛変腑銆?/p> <p>褰撶紦瀛樿鎺掓斁鍑烘潵(flush)鏃訛紝瀹冮噷闈㈢殑鎵鏈夋暟鎹垨鑰呰鍐欏叆鐗╃悊濯掕川涓紙濡傛灉鏄竴涓緭鍑烘祦鐨勮瘽錛夛紝鎴栬呯畝鍗曠殑琚姽鎺?濡傛灉鏄竴涓緭鍏ユ祦鐨勮瘽)銆? 榪欎釜榪囩▼縐頒負鍚屾(synchronization)錛屽畠浼氬湪浠ヤ笅浠諱竴鎯呭喌涓嬪彂鐢燂細</p> <ul> <li><strong> 褰撴枃浠惰鍏抽棴鏃?</strong> 鍦ㄦ枃浠惰鍏抽棴涔嬪墠錛屾墍鏈夎繕娌℃湁琚畬鍏ㄥ啓鍑烘垨璇誨彇鐨勭紦瀛橀兘灝嗚鍚屾銆? </li> <li><strong> 褰撶紦瀛榖uffer 婊℃椂:</strong> 緙撳瓨Buffers 鏈変竴瀹氱殑絀洪棿闄愬埗銆傚綋緙撳瓨婊℃椂錛屽畠浼氳鑷姩鍚屾銆? </li> <li><strong> 鎺у埗絎︽槑紜寚鏄?</strong> 褰撻亣鍒版祦涓煇浜涚壒瀹氱殑鎺у埗絎︽椂錛屽悓姝ヤ細鍙戠敓銆傝繖浜涙帶鍒剁鍖呮嫭錛歠lush 鍜宔ndl銆? </li> <li><strong> 鏄庣‘璋冪敤鍑芥暟sync():</strong> 璋冪敤鎴愬憳鍑芥暟sync() (鏃犲弬鏁?鍙互寮曞彂绔嬪嵆鍚屾銆傝繖涓嚱鏁拌繑鍥炰竴涓猧nt 鍊鹼紝絳変簬-1 琛ㄧず嫻佹病鏈夎仈緋葷殑緙撳瓨鎴栨搷浣滃け璐ャ?</li> </ul> <br><img src ="http://www.shnenglu.com/yuqilin1228/aggbug/110619.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/yuqilin1228/" target="_blank">LynnRaymond</a> 2010-03-26 22:01 <a href="http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110619.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>銆怌++甯歌瘑銆慍/C++澶存枃浠朵竴瑙?/title><link>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110613.html</link><dc:creator>LynnRaymond</dc:creator><author>LynnRaymond</author><pubDate>Fri, 26 Mar 2010 13:39:00 GMT</pubDate><guid>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110613.html</guid><wfw:comment>http://www.shnenglu.com/yuqilin1228/comments/110613.html</wfw:comment><comments>http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/yuqilin1228/comments/commentRss/110613.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/yuqilin1228/services/trackbacks/110613.html</trackback:ping><description><![CDATA[<strong> <font size="2">C銆佷紶緇?C++<br><br>#include <assert.h>銆銆銆銆//璁懼畾鎻掑叆鐐?br>#include <ctype.h>銆銆銆銆 //瀛楃澶勭悊<br>#include <errno.h>銆銆銆銆 //瀹氫箟閿欒鐮?br>#include <float.h>銆銆銆銆 //嫻偣鏁板鐞?br>#include <fstream.h>銆銆銆 //鏂囦歡杈撳叆錛忚緭鍑?br>#include <iomanip.h> //鍙傛暟鍖栬緭鍏ワ紡杈撳嚭<br>#include <iostream.h>銆銆銆//鏁版嵁嫻佽緭鍏ワ紡杈撳嚭<br>#include <limits.h>銆銆銆銆//瀹氫箟鍚勭鏁版嵁綾誨瀷鏈鍊煎父閲?br>#include <locale.h>銆銆銆銆//瀹氫箟鏈湴鍖栧嚱鏁?br>#include <math.h>銆銆銆銆銆//瀹氫箟鏁板鍑芥暟<br>#include <stdio.h>銆銆銆銆 //瀹氫箟杈撳叆錛忚緭鍑哄嚱鏁?br>#include <stdlib.h>銆銆銆銆//瀹氫箟鏉傞」鍑芥暟鍙婂唴瀛樺垎閰嶅嚱鏁?br>#include <string.h>銆銆銆銆//瀛楃涓插鐞?br>#include <strstrea.h>銆銆銆//鍩轟簬鏁扮粍鐨勮緭鍏ワ紡杈撳嚭<br>#include <time.h>銆銆銆銆銆//瀹氫箟鍏充簬鏃墮棿鐨勫嚱鏁?br>#include <wchar.h> //瀹藉瓧絎﹀鐞嗗強杈撳叆錛忚緭鍑?br>#include <wctype.h>銆銆銆銆//瀹藉瓧絎﹀垎綾?br><br>//////////////////////////////////////////////////////////////////////////<br><br>鏍? 鍑?C++銆錛堝悓涓婄殑涓嶅啀娉ㄩ噴錛?br><br>#include <algorithm>銆銆銆 //STL 閫氱敤綆楁硶<br>#include <bitset>銆銆銆銆銆//STL 浣嶉泦瀹瑰櫒<br>#include <cctype><br>#include <cerrno><br>#include <clocale><br>#include <cmath><br>#include <complex>銆銆銆銆 //澶嶆暟綾?br>#include <cstdio><br>#include <cstdlib><br>#include <cstring><br>#include <ctime><br>#include <deque>銆銆銆銆銆 //STL 鍙岀闃熷垪瀹瑰櫒<br>#include <exception> //寮傚父澶勭悊綾?br>#include <fstream><br>#include <functional>銆銆銆//STL 瀹氫箟榪愮畻鍑芥暟錛堜唬鏇胯繍綆楃錛?br>#include <limits><br>#include <list>銆銆銆銆銆銆//STL 綰挎у垪琛ㄥ鍣?br>#include <map>銆銆銆銆銆銆 //STL 鏄犲皠瀹瑰櫒<br>#include <iomanip><br>#include <ios>銆銆銆銆銆銆 //鍩烘湰杈撳叆錛忚緭鍑烘敮鎸?br>#include <iosfwd>銆銆銆銆銆//杈撳叆錛忚緭鍑虹郴緇熶嬌鐢ㄧ殑鍓嶇疆澹版槑<br>#include <iostream><br>#include <istream>銆銆銆銆 //鍩烘湰杈撳叆嫻?br>#include <ostream>銆銆銆銆 //鍩烘湰杈撳嚭嫻?br>#include <queue>銆銆銆銆銆 //STL 闃熷垪瀹瑰櫒<br>#include <set>銆銆銆銆銆銆 //STL 闆嗗悎瀹瑰櫒<br>#include <sstream>銆銆銆銆 //鍩轟簬瀛楃涓茬殑嫻?br>#include <stack>銆銆銆銆銆 //STL 鍫嗘爤瀹瑰櫒銆銆銆銆<br>#include <stdexcept>銆銆銆 //鏍囧噯寮傚父綾?br>#include <streambuf>銆銆銆 //搴曞眰杈撳叆錛忚緭鍑烘敮鎸?br>#include <string>銆銆銆銆銆//瀛楃涓茬被<br>#include <utility>銆銆銆銆 //STL 閫氱敤妯℃澘綾?br>#include <vector>銆銆銆銆銆//STL 鍔ㄦ佹暟緇勫鍣?br>#include <cwchar><br>#include <cwctype><br><br>using namespace std;<br><br>//////////////////////////////////////////////////////////////////////////<br><br>C99 澧炲姞<br><br>#include <complex.h>銆銆 //澶嶆暟澶勭悊<br>#include <fenv.h>銆銆銆銆//嫻偣鐜<br>#include <inttypes.h>銆銆//鏁存暟鏍煎紡杞崲<br>#include <stdbool.h>銆銆 //甯冨皵鐜<br>#include <stdint.h>銆銆銆//鏁村瀷鐜<br>#include <tgmath.h>銆銆銆//閫氱敤綾誨瀷鏁板瀹?/font>C/C++ 澶存枃浠朵竴瑙?br><!----><br></strong> <font size="2"><strong> C銆佷紶緇?C++<br><br>#include <assert.h>銆銆銆銆//璁懼畾鎻掑叆鐐?br>#include <ctype.h>銆銆銆銆 //瀛楃澶勭悊<br>#include <errno.h>銆銆銆銆 //瀹氫箟閿欒鐮?br>#include <float.h>銆銆銆銆 //嫻偣鏁板鐞?br>#include <fstream.h>銆銆銆 //鏂囦歡杈撳叆錛忚緭鍑?br>#include <iomanip.h>銆銆銆 //鍙傛暟鍖栬緭鍏ワ紡杈撳嚭<br>#include <iostream.h>銆銆銆//鏁版嵁嫻佽緭鍏ワ紡杈撳嚭<br>#include <limits.h>銆銆銆銆//瀹氫箟鍚勭鏁版嵁綾誨瀷鏈鍊煎父閲?br>#include <locale.h>銆銆銆銆//瀹氫箟鏈湴鍖栧嚱鏁?br>#include <math.h>銆銆銆銆銆//瀹氫箟鏁板鍑芥暟<br>#include <stdio.h>銆銆銆銆 //瀹氫箟杈撳叆錛忚緭鍑哄嚱鏁?br>#include <stdlib.h>銆銆銆銆//瀹氫箟鏉傞」鍑芥暟鍙婂唴瀛樺垎閰嶅嚱鏁?br>#include <string.h>銆銆銆銆//瀛楃涓插鐞?br>#include <strstrea.h>銆銆銆//鍩轟簬鏁扮粍鐨勮緭鍏ワ紡杈撳嚭<br>#include <time.h>銆銆銆銆銆//瀹氫箟鍏充簬鏃墮棿鐨勫嚱鏁?br>#include <wchar.h> //瀹藉瓧絎﹀鐞嗗強杈撳叆錛忚緭鍑?br>#include <wctype.h>銆銆銆銆//瀹藉瓧絎﹀垎綾?br><br>//////////////////////////////////////////////////////////////////////////<br><br>鏍? 鍑?C++銆錛堝悓涓婄殑涓嶅啀娉ㄩ噴錛?br><br>#include <algorithm>銆銆銆 //STL 閫氱敤綆楁硶<br>#include <bitset>銆銆銆銆銆//STL 浣嶉泦瀹瑰櫒<br>#include <cctype><br>#include <cerrno><br>#include <clocale><br>#include <cmath><br>#include <complex>銆銆銆銆 //澶嶆暟綾?br>#include <cstdio><br>#include <cstdlib><br>#include <cstring><br>#include <ctime><br>#include <deque>銆銆銆銆銆 //STL 鍙岀闃熷垪瀹瑰櫒<br>#include <exception> //寮傚父澶勭悊綾?br>#include <fstream><br>#include <functional>銆銆銆//STL 瀹氫箟榪愮畻鍑芥暟錛堜唬鏇胯繍綆楃錛?br>#include <limits><br>#include <list>銆銆銆銆銆銆//STL 綰挎у垪琛ㄥ鍣?br>#include <map>銆銆銆銆銆銆 //STL 鏄犲皠瀹瑰櫒<br>#include <iomanip><br>#include <ios>銆銆銆銆銆銆 //鍩烘湰杈撳叆錛忚緭鍑烘敮鎸?br>#include <iosfwd>銆銆銆銆銆//杈撳叆錛忚緭鍑虹郴緇熶嬌鐢ㄧ殑鍓嶇疆澹版槑<br>#include <iostream><br>#include <istream>銆銆銆銆 //鍩烘湰杈撳叆嫻?br>#include <ostream>銆銆銆銆 //鍩烘湰杈撳嚭嫻?br>#include <queue>銆銆銆銆銆 //STL 闃熷垪瀹瑰櫒<br>#include <set>銆銆銆銆銆銆 //STL 闆嗗悎瀹瑰櫒<br>#include <sstream>銆銆銆銆 //鍩轟簬瀛楃涓茬殑嫻?br>#include <stack>銆銆銆銆銆 //STL 鍫嗘爤瀹瑰櫒銆銆銆銆<br>#include <stdexcept>銆銆銆 //鏍囧噯寮傚父綾?br>#include <streambuf>銆銆銆 //搴曞眰杈撳叆錛忚緭鍑烘敮鎸?br>#include <string>銆銆銆銆銆//瀛楃涓茬被<br>#include <utility>銆銆銆銆 //STL 閫氱敤妯℃澘綾?br>#include <vector>銆銆銆銆銆//STL 鍔ㄦ佹暟緇勫鍣?br>#include <cwchar><br>#include <cwctype><br><br>using namespace std;<br><br>//////////////////////////////////////////////////////////////////////////<br><br>C99 澧炲姞<br><br>#include <complex.h>銆銆 //澶嶆暟澶勭悊<br>#include <fenv.h>銆銆銆銆//嫻偣鐜<br>#include <inttypes.h>銆銆//鏁存暟鏍煎紡杞崲<br>#include <stdbool.h>銆銆 //甯冨皵鐜<br>#include <stdint.h>銆銆銆//鏁村瀷鐜<br>#include <tgmath.h>銆銆銆//閫氱敤綾誨瀷鏁板瀹?/strong> </font><br> <br> <img src ="http://www.shnenglu.com/yuqilin1228/aggbug/110613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/yuqilin1228/" target="_blank">LynnRaymond</a> 2010-03-26 21:39 <a href="http://www.shnenglu.com/yuqilin1228/archive/2010/03/26/110613.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://www.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://iamsleekcn.com" target="_blank">久久人人爽人人爽爽久久</a>| <a href="http://cp50088.com" target="_blank">亚洲美女在线看</a>| <a href="http://5a07.com" target="_blank">亚洲永久在线</a>| <a href="http://playav999.com" target="_blank">欧美日韩综合精品</a>| <a href="http://74va.com" target="_blank">亚洲国产日韩一区</a>| <a href="http://by2565.com" target="_blank">免费欧美在线视频</a>| <a href="http://yw1998.com" target="_blank">久久―日本道色综合久久</a>| <a href="http://www50050.com" target="_blank">国产在线视频欧美</a>| <a href="http://3451215.com" target="_blank">久久精品一本</a>| <a href="http://cp3824.com" target="_blank">久久亚洲国产精品日日av夜夜</a>| <a href="http://haoa009.com" target="_blank">欧美在线观看视频一区二区三区</a>| <a href="http://414794.com" target="_blank">亚洲国产欧美不卡在线观看</a>| <a href="http://ztqsfw.com" target="_blank">久久精品成人一区二区三区蜜臀 </a>| <a href="http://hh474.com" target="_blank">午夜精品www</a>| <a href="http://www24668.com" target="_blank">国产精品成人免费精品自在线观看</a>| <a href="http://pppp95.com" target="_blank">欧美激情一区二区三区全黄</a>| <a href="http://zhongqingshiye.com" target="_blank">亚洲国产小视频在线观看</a>| <a href="http://o6186.com" target="_blank">免费欧美在线视频</a>| <a href="http://miaoxp.com" target="_blank">欧美成人三级在线</a>| <a href="http://bmcshy.com" target="_blank">激情自拍一区</a>| <a href="http://xingda-sh.com" target="_blank">欧美电影在线免费观看网站</a>| <a href="http://wwwsfsf11.com" target="_blank">久久午夜电影网</a>| <a href="http://域名" target="_blank">亚洲裸体在线观看</a>| <a href="http://9238479.com" target="_blank">一区二区三区av</a>| <a href="http://ywy99.com" target="_blank">国产日韩一区欧美</a>| <a href="http://tianxiantxtv.com" target="_blank">欧美99在线视频观看</a>| <a href="http://060607.com" target="_blank">久久久久综合</a>| <a href="http://51shoudian.com" target="_blank">99亚洲一区二区</a>| <a href="http://xingba999.com" target="_blank">一区二区欧美在线</a>| <a href="http://244223.com" target="_blank">欧美黄色大片网站</a>| <a href="http://cecelife.com" target="_blank">宅男噜噜噜66一区二区</a>| <a href="http://maokk77.com" target="_blank">亚洲图片欧洲图片日韩av</a>| <a href="http://www311pi.com" target="_blank">国产精品日韩</a>| <a href="http://www1122fu.com" target="_blank">欧美**人妖</a>| <a href="http://jxrisen.com" target="_blank">欧美午夜大胆人体</a>| <a href="http://heyzo1031.com" target="_blank">亚洲一区在线看</a>| <a href="http://taikonghua.com" target="_blank">久久精品国产精品亚洲</a>| <a href="http://6k6a.com" target="_blank">91久久精品国产</a>| <a href="http://dlwansheng.com" target="_blank">亚洲视频在线观看网站</a>| <a href="http://8222666.com" target="_blank">影音先锋亚洲视频</a>| <a href="http://bjmrkj.com" target="_blank">亚洲免费观看高清在线观看</a>| <a href="http://4430x.com" target="_blank">国产无一区二区</a>| <a href="http://80hogo.com" target="_blank">亚洲伦理一区</a>| <a href="http://www-ty177.com" target="_blank">国产在线国偷精品产拍免费yy</a>| <a href="http://559dd.com" target="_blank">在线精品国产欧美</a>| <a href="http://fs-nanxiang.com" target="_blank">久久影视精品</a>| <a href="http://jlkcjz.com" target="_blank">欧美性大战久久久久久久蜜臀 </a>| <a href="http://www-236677.com" target="_blank">一区二区精品在线</a>| <a href="http://456kp.com" target="_blank">国产精品二区在线</a>| <a href="http://hakuihoso.com" target="_blank">欧美一级艳片视频免费观看</a>| <a href="http://8868866.com" target="_blank">玖玖国产精品视频</a>| <a href="http://56lin.com" target="_blank">久久久99免费视频</a>| <a href="http://zgslwtc.com" target="_blank">欧美波霸影院</a>| <a href="http://carboarm.com" target="_blank">久久人人97超碰国产公开结果</a>| <a href="http://pppp95.com" target="_blank">亚洲一二三四区</a>| <a href="http://zhenhaozu.com" target="_blank">亚洲日本va午夜在线电影</a>| <a href="http://335848.com" target="_blank">亚洲午夜精品在线</a>| <a href="http://mfgun.com" target="_blank">亚洲国产综合91精品麻豆</a>| <a href="http://dv6699.com" target="_blank">亚洲欧美日韩一区二区三区在线观看</a>| <a href="http://czsanlin.com" target="_blank">欧美激情在线狂野欧美精品</a>| <a href="http://6faa.com" target="_blank">国产精品永久</a>| <a href="http://hkbsi.com" target="_blank">亚洲欧美日韩爽爽影院</a>| <a href="http://34ak.com" target="_blank">亚洲影院色在线观看免费</a>| <a href="http://cao3e8c8.com" target="_blank">欧美日本不卡</a>| <a href="http://1194123.com" target="_blank">99国内精品</a>| <a href="http://z10669.com" target="_blank">翔田千里一区二区</a>| <a href="http://mascorcg.com" target="_blank">国产精品美女午夜av</a>| <a href="http://15013010203.com" target="_blank">亚洲影院在线观看</a>| <a href="http://4439x9.com" target="_blank">久久久久久夜精品精品免费</a>| <a href="http://53xxxx.com" target="_blank">国模一区二区三区</a>| <a href="http://hhh699.com" target="_blank">久久全国免费视频</a>| <a href="http://www90aaa.com" target="_blank">91久久精品美女</a>| <a href="http://www284tv.com" target="_blank">亚洲肉体裸体xxxx137</a>| <a href="http://bjayj.com" target="_blank">欧美精品久久一区二区</a>| <a href="http://yiluee.com" target="_blank">日韩一区二区精品在线观看</a>| <a href="http://jlkcjz.com" target="_blank">亚洲自拍电影</a>| <a href="http://go1818.com" target="_blank">国内久久视频</a>| <a href="http://youminwang.com" target="_blank">美女网站久久</a>| <a href="http://ssis378.com" target="_blank">日韩视频国产视频</a>| <a href="http://596361.com" target="_blank">欧美在线关看</a>| <a href="http://www-662553.com" target="_blank">在线日本欧美</a>| <a href="http://sishengnv.com" target="_blank">欧美日韩一区在线播放</a>| <a href="http://7269003.com" target="_blank">亚洲免费一在线</a>| <a href="http://seqing9.com" target="_blank">蜜臀av在线播放一区二区三区</a>| <a href="http://cpb-group.com" target="_blank">男人天堂欧美日韩</a>| <a href="http://987gqb.com" target="_blank">欧美一区二区三区免费观看视频</a>| <a href="http://samucorvin.com" target="_blank">欧美一区在线视频</a>| <a href="http://995688.com" target="_blank">久久精品亚洲乱码伦伦中文</a>| <a href="http://xxxxxdywvip18.com" target="_blank">国产欧美日韩一级</a>| <a href="http://qq5621.com" target="_blank">久久成人免费电影</a>| <a href="http://10669p.com" target="_blank">欧美激情一区二区三区在线</a>| <a href="http://www-6410c.com" target="_blank">狠狠色狠狠色综合系列</a>| <a href="http://123lifenet.com" target="_blank">久久久久欧美精品</a>| <a href="http://zzchanke.com" target="_blank">欧美国产一区二区在线观看</a>| <a href="http://bbww55.com" target="_blank">99国产精品久久</a>| <a href="http://854277.com" target="_blank">欧美午夜宅男影院在线观看</a>| <a href="http://kdy444.com" target="_blank">亚洲免费视频一区二区</a>| <a href="http://788111c.com" target="_blank">久久九九国产</a>| <a href="http://11867a.com" target="_blank">国产一区二区久久</a>| <a href="http://www33779.com" target="_blank">欧美精品999</a>| <a href="http://dailymailnepal.com" target="_blank">一本久久综合亚洲鲁鲁五月天</a>| <a href="http://188293.com" target="_blank">国产日韩欧美一二三区</a>| <a href="http://as777as.com" target="_blank">欧美一级网站</a>| <a href="http://811914.com" target="_blank">欧美福利视频</a>| <a href="http://8410555.com" target="_blank">亚洲性夜色噜噜噜7777</a>| <a href="http://9955377.com" target="_blank">国产情人综合久久777777</a>| <a href="http://tk263.com" target="_blank">欧美伊人久久久久久久久影院</a>| <a href="http://www901aaa.com" target="_blank">中国日韩欧美久久久久久久久</a>| <a href="http://05078888.com" target="_blank">亚洲小视频在线观看</a>| <a href="http://47b8.com" target="_blank">久久久久久久一区二区</a>| <a href="http://77smsm.com" target="_blank">91久久精品www人人做人人爽</a>| <a href="http://18p2.com" target="_blank">亚洲桃色在线一区</a>| <a href="http://bixiuge.com" target="_blank">久久视频免费观看</a>| <a href="http://xsxcn.com" target="_blank">99国产精品久久久久久久成人热</a>| <a href="http://www-964664.com" target="_blank">亚洲字幕一区二区</a>| <a href="http://wtoykd.com" target="_blank">久久久91精品</a>| <a href="http://4tobi.com" target="_blank">一区二区毛片</a>| <a href="http://www962aa.com" target="_blank">在线欧美亚洲</a>| <a href="http://yjdm296.com" target="_blank">国产精品乱子乱xxxx</a>| <a href="http://91sp136.com" target="_blank">久久午夜电影</a>| <a href="http://lctongda.com" target="_blank">一区二区三欧美</a>| <a href="http://8135777.com" target="_blank">久久精品免费观看</a>| <a href="http://xiuren2021.com" target="_blank">亚洲最新合集</a>| <a href="http://chinasck.com" target="_blank">国产精品99久久久久久白浆小说</a>| <a href="http://92ebook.com" target="_blank">99国内精品久久</a>| <a href="http://iacapmm.com" target="_blank">国产精品美女主播</a>| <a href="http://621762.com" target="_blank">欧美日韩国产不卡在线看</a>| <a href="http://pfpf662.com" target="_blank">性欧美超级视频</a>| <a href="http://6666785.com" target="_blank">亚洲一区久久</a>| <a href="http://xaxkizlar.com" target="_blank">亚洲精品美女久久久久</a>| <a href="http://www497171a.com" target="_blank">久久综合久久综合久久综合</a>| <a href="http://niu96.com" target="_blank">中文欧美在线视频</a>| <a href="http://xian369.com" target="_blank">亚洲国产高清在线观看视频</a>| <a href="http://www3344cao.com" target="_blank">国产精品香蕉在线观看</a>| <a href="http://sd-12530.com" target="_blank">欧美日韩不卡</a>| <a href="http://498626.com" target="_blank">欧美电影在线观看完整版</a>| <a href="http://yiapk.com" target="_blank">午夜一区二区三视频在线观看 </a>| <a href="http://xpfuli.com" target="_blank">久久精品一区中文字幕</a>| <a href="http://fuqiba.com" target="_blank">亚洲高清视频的网址</a>| <a href="http://www-06654.com" target="_blank">六十路精品视频</a>| <a href="http://wwmm9.com" target="_blank">久久精品国产一区二区三</a>| <a href="http://zd-jm.com" target="_blank">亚洲午夜高清视频</a>| <a href="http://xingba999.com" target="_blank">亚洲国产精品久久91精品</a>| <a href="http://4106446.com" target="_blank">国产亚洲精品一区二555</a>| <a href="http://wilcherish.com" target="_blank">国产精品国产三级国产普通话蜜臀 </a>| <a href="http://794278.com" target="_blank">久久一二三区</a>| <a href="http://7749137.com" target="_blank">亚洲欧美日韩国产综合精品二区</a>| <a href="http://1313js.com" target="_blank">亚洲手机成人高清视频</a>| <a href="http://4379d.com" target="_blank">亚洲国产精品一区二区第一页</a>| <a href="http://hazymall.com" target="_blank">亚洲综合二区</a>| <a href="http://5cok.com" target="_blank">亚洲午夜极品</a>| <a href="http://tjpzgs.com" target="_blank">亚洲色图在线视频</a>| <a href="http://fdgkinetic.com" target="_blank">亚洲精品在线免费</a>| <a href="http://papala4444.com" target="_blank">久久国产一区</a>| <a href="http://khc83.com" target="_blank">裸体丰满少妇做受久久99精品</a>| <a href="http://y3u7.com" target="_blank">一区二区三区在线视频免费观看 </a>| <a href="http://394141.com" target="_blank">中文久久乱码一区二区</a>| <a href="http://ddh345.com" target="_blank">亚洲精品乱码久久久久久久久</a>| <a href="http://2387463.com" target="_blank">久久久久久久久久久成人</a>| <a href="http://bauyu121.com" target="_blank">亚洲午夜电影在线观看</a>| <a href="http://xmzszx.com" target="_blank">一本大道久久a久久精品综合 </a>| <a href="http://chinashixin.com" target="_blank">久久久久久久久蜜桃</a>| <a href="http://chufengguanye.com" target="_blank">亚洲女人小视频在线观看</a>| <a href="http://jy920.com" target="_blank">欧美精品在线视频观看</a>| <a href="http://sikixixw12.com" target="_blank">国产精品久久999</a>| <a href="http://8888590.com" target="_blank">国产精品va在线播放我和闺蜜</a>| <a href="http://qdssqt.com" target="_blank">99在线精品视频</a>| <a href="http://59jf.com" target="_blank">亚洲美女精品久久</a>| <a href="http://kanzhelu31.com" target="_blank">亚洲精品久久</a>| <a href="http://136066.com" target="_blank">亚洲四色影视在线观看</a>| <a href="http://mathck.com" target="_blank">亚洲欧美日韩久久精品</a>| <a href="http://zhijiasd.com" target="_blank">欧美在线视频免费播放</a>| <a href="http://jjy891.com" target="_blank">麻豆精品在线视频</a>| <a href="http://bjzgmember.com" target="_blank">亚洲成人中文</a>| <a href="http://313cq.com" target="_blank">99精品视频一区</a>| <a href="http://www-333410.com" target="_blank">亚洲专区国产精品</a>| <a href="http://www18998.com" target="_blank">久久精品亚洲</a>| <a href="http://3bmmtv.com" target="_blank">欧美第一黄色网</a>| <a href="http://zzmzit.com" target="_blank">国产欧美日韩综合精品二区</a>| <a href="http://fobdoer.com" target="_blank">激情欧美日韩</a>| <a href="http://845821.com" target="_blank">一本到12不卡视频在线dvd</a>| <a href="http://sd-12530.com" target="_blank">亚洲网站在线看</a>| <a href="http://yytaotu.com" target="_blank">久久久xxx</a>| <a href="http://482896.com" target="_blank">麻豆av福利av久久av</a>| <a href="http://emu160.com" target="_blank">夜夜嗨av一区二区三区四区</a>| <a href="http://8847m.com" target="_blank">亚洲永久免费精品</a>| <a href="http://tk99444.com" target="_blank">久久综合色婷婷</a>| <a href="http://neudlac.com" target="_blank">国产精品久久国产精品99gif</a>| <a href="http://ztqsfw.com" target="_blank">久久久国产精品一区</a>| <a href="http://tp-88.com" target="_blank">欧美久久一区</a>| <a href="http://yhc26.com" target="_blank">国产啪精品视频</a>| <a href="http://55psd.com" target="_blank">亚洲高清资源综合久久精品</a>| <a href="http://kakatok.com" target="_blank">在线中文字幕日韩</a>| <a href="http://8004006.com" target="_blank">久久久久久久久久久一区</a>| <a href="http://aqxiangtai.com" target="_blank">亚洲国产经典视频</a>| <a href="http://jizzizz.com" target="_blank">亚洲美女在线国产</a>| <a href="http://749996.com" target="_blank">欧美成人亚洲成人</a>| <a href="http://edtxt.com" target="_blank">国产亚洲欧洲</a>| <a href="http://jnjpsm.com" target="_blank">在线综合亚洲欧美在线视频</a>| <a href="http://wawabt.com" target="_blank">鲁鲁狠狠狠7777一区二区</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>