锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品72免费观看,亚洲尤物在线,欧美在线视频免费播放http://m.shnenglu.com/izualzhy/category/15346.html鍧氭寔 鐩鎬俊鑷繁zh-cnTue, 15 Nov 2011 01:40:55 GMTTue, 15 Nov 2011 01:40:55 GMT60C++ iostream榪唬鍣ㄧ畝浠?1)http://m.shnenglu.com/izualzhy/archive/2011/11/09/159894.htmlizualzhyizualzhyWed, 09 Nov 2011 15:15:00 GMThttp://m.shnenglu.com/izualzhy/archive/2011/11/09/159894.htmlhttp://m.shnenglu.com/izualzhy/comments/159894.htmlhttp://m.shnenglu.com/izualzhy/archive/2011/11/09/159894.html#Feedback0http://m.shnenglu.com/izualzhy/comments/commentRss/159894.htmlhttp://m.shnenglu.com/izualzhy/services/trackbacks/159894.html鏍囧噯搴撳畾涔夌殑榪唬鍣ㄦ湁寰堝縐嶏紝istream_iterator鐢ㄤ簬璇誨彇杈撳叆嫻侊紝 ostream_iterator鐢ㄤ簬鍐欒緭鍑烘祦銆傝繖浜涜凱浠e櫒灝嗗畠浠墍瀵瑰簲鐨勬祦瑙嗕負鐗瑰畾綾誨瀷鐨勫厓绱犲簭鍒椼備嬌鐢ㄦ祦榪唬鍣ㄦ椂錛屽彲浠ョ敤娉涘瀷綆楁硶浠庢祦瀵硅薄璇誨彇鏁版嵁錛堟垨灝嗘暟鎹啓鍒版祦瀵硅薄錛夈?

榪欑瘒絎旇涓昏鏄叾瀹氫箟鍜屽熀鏈殑浣跨敤錛?

iostream榪唬鍣ㄧ殑鏋勯犲嚱鏁幫細

1. istream_iterator<T> in(strm);

鍒涘緩浠庤緭鍏ユ祦strm璇誨彇T綾誨瀷瀵硅薄鐨刬stream_iterator瀵硅薄

2. istream_iterator<T> in;

istream_iterator瀵硅薄鐨勮秴鍑烘湯绔凱浠e櫒銆?

3. ostream_iterator<T> out(strm);

鍒涘緩灝員綾誨瀷鐨勫璞″啓鍒拌緭鍑烘祦strm鐨刼stream_iterator瀵硅薄

4. ostream_iterator<T> out(strm,delim);

鍒涘緩灝員綾誨瀷鐨勫璞″啓鍒拌緭鍑烘祦strm鐨刼stream_iterator瀵硅薄錛屽湪鍐欏叆榪囩▼涓嬌鐢╠elim浣滀負鍏冪礌鐨勫垎闅旂銆俤elim鏄互絀哄瓧絎︾粨鏉熺殑瀛楃鏁扮粍銆?

鍏堢湅istream_iterator涓涓緥瀛愶細

#include <iostream>

#include <vector>

#include <iterator>

using namespace std;

int main()

{

istream_iterator<int> cin_it(cin);//read ints from cin

istream_iterator<int> end_of_stream;//end iterator value(eof)

vector<int> vec(cin_it, end_of_stream);

//also should be written like this:

//vector<int> vec;

//while (cin_it != end_of_stream)

//vec.push_back(*cin_it++);

vector<int>::iterator it=vec.begin();

while (it!=vec.end()) {

cout << " " << *it++;

}

cout << endl;

return 0;

}


璇ョ▼搴忚鍙栭敭鐩樿緭鍏ワ紝鍐欏埌vec錛岀洿鍒伴亣鍒伴潪娉曡緭鍏ャ傚儚涓嬮潰榪欐牱錛?

1 2 3 4af

1 2 3 4

紼嬪簭寰幆浠巆in璇誨彇int鍨嬫暟鎹紝騫跺皢璇誨叆鐨勫唴瀹逛繚瀛樺湪vec銆傛瘡嬈″驚鐜兘浼氭鏌in_it鏄惁涓篹of銆傚叾涓璭of榪唬鍣ㄥ畾涔変負絀虹殑istream_iterator瀵硅薄錛岀敤浣滅粨鏉熻凱浠e櫒銆傜粦鍦ㄦ祦涓婄殑榪唬鍣ㄥ湪閬囧埌鏂囦歡鎴栨煇涓敊璇椂錛屽皢絳変簬緇撴潫榪唬鍣ㄧ殑鍊箋?

濡傜▼搴忔敞閲婇噷鐨勶紝榪欓儴鍒嗗彲浠ョ敤

vector<int> vec(cin_it, end_of_stream)//construct vec from an iterator range

鏉ヤ唬鏇褲?

榪欓噷錛岀敤涓瀵規爣璁板厓绱犺寖鍥寸殑榪唬鍣ㄦ瀯閫爒ec瀵硅薄銆傝繖浜涜凱浠e櫒鏄痠stream_iterator瀵硅薄錛岃繖灝辨剰鍛崇潃榪欐鑼冨洿鐨勫厓绱犳槸閫氳繃璇誨彇鎵鍏寵仈鐨勬祦鏉ヨ幏寰楃殑銆傝繖涓瀯閫犲嚱鏁扮殑鏁堟灉鏄cin錛岀洿鍒板埌杈炬枃浠剁粨鏉熸垨杈撳叆鐨勪笉鏄痠nt鍨嬫暟鍊間負姝€傝鍙栫殑鍏冪礌鐢ㄤ簬鏋勯爒ec瀵硅薄銆?

鍦ㄥ垱寤篿stream_iterator鏃訛紝鍙洿鎺ュ皢瀹冪粦瀹氬埌涓涓祦涓娿傚彟涓縐嶆柟娉曟槸鍒涘緩鏃朵笉鎻愪緵瀹炲弬錛屽垯璇ヨ凱浠e櫒鎸囧悜瓚呭嚭鏈鐨勪綅緗俹stream_iterator涓嶆彁渚涜秴鍑烘湯绔凱浠e櫒銆?

ostream_iterator瀵硅薄蹇呴』涓庣壒瀹氱殑嫻佺粦鍦ㄤ竴璧楓傚湪鍒涘緩ostream_iterator鏃訛紝鍙彁渚涚浜屼釜錛堝彲閫夌殑錛夊疄鍙傦紝鎸囧畾灝嗗厓绱犲啓鍏ヨ緭鍑烘祦鏃朵嬌鐢ㄧ殑鍒嗛殧絎︺傚垎闅旂蹇呴』鏄疌椋庢牸瀛楃涓層傚洜涓哄畠鏄疌椋庢牸瀛楃涓詫紝鎵浠ュ繀欏諱互絀哄瓧絎︾粨鏉燂紱鍚﹀垯錛屽叾琛屼負灝嗘槸鏈畾涔夌殑銆?

鐪嬩釜ostream_iterator鐨勪緥瀛愶細

#include <iostream>

#include <iterator>

#include <string>

using namespace std;

int main()

{

ostream_iterator<string> out_iter(cout, ":test\n");//write one string per line to the standard output

istream_iterator<string> in_iter(cin),eof;//read strings from standard input and the end iterator

while (in_iter!=eof) {

//write value of in_iter to standard output

//and then increment the iterator to get the next value from cin

*out_iter = *in_iter;//write to standard output here

++out_iter;

++in_iter;

}

return 0;

}


榪欎釜紼嬪簭璇籧in錛屽茍灝嗘瘡涓鍏ョ殑鍊間緷嬈″啓鍒癱out涓嶅悓鐨勮銆?

棣栧厛錛屽畾涓涓猳stream_stream瀵硅薄錛岀敤浜庡皢string綾誨瀷鐨勬暟鎹啓鍒癱out涓紝姣忎釜string瀵硅薄鍚庤窡涓涓?#8221;test”鍜屾崲琛岀銆傚畾涔変袱涓猧stream_iterator瀵硅薄錛岀敤浜庝粠cin涓鍙杝tring瀵硅薄銆倃hile寰幆綾諱技浜庡墠涓涓緥瀛愩備絾鏄繖涓嬈′笉鏄皢璇誨彇鐨勬暟鎹瓨鍌ㄥ湪vector瀵硅薄錛岃屾槸灝嗚鍙栫殑鏁版嵁浠樼粰out_iter,浠庤岃緭鍑哄埌cout涓娿?

*out_iter = *in_iter;榪欎竴鍙ユ墽琛屾椂錛屼細鍚慶onsole鎵撳嵃銆?

杈撳嚭綾諱技浜庤繖涓牱瀛愶細

123

123:test

abc

abc:test

xyz

xyz:test

鍙傝冿細

1. 銆奀++Primer銆?

izualzhy 2011-11-09 23:15 鍙戣〃璇勮
]]>
STL-Algorithm涔媐or_each鍑芥暟瀛︿範http://m.shnenglu.com/izualzhy/archive/2011/11/09/159891.htmlizualzhyizualzhyWed, 09 Nov 2011 15:09:00 GMThttp://m.shnenglu.com/izualzhy/archive/2011/11/09/159891.htmlhttp://m.shnenglu.com/izualzhy/comments/159891.htmlhttp://m.shnenglu.com/izualzhy/archive/2011/11/09/159891.html#Feedback0http://m.shnenglu.com/izualzhy/comments/commentRss/159891.htmlhttp://m.shnenglu.com/izualzhy/services/trackbacks/159891.html鏈榪戝涔犱竴鏈珻++ Library Reference鐨勭數瀛愪功錛屾劅瑙夎窡緲誨瓧鍏鎬技鐨勶紝鏈枃鏄妱褰曚笅鏉ョ殑瀛︿範絎旇涔嬩竴銆?

鍑芥暟澹版槑錛?/p>

template<class InputInterator, class Function>

Function for_each(InputIterator first, InputIterator last, Function f);

鍑芥暟瑙i噴錛?

瀵瑰叾杈撳叆鑼冨洿[first,last)鐨勬瘡涓涓厓绱犲簲鐢ㄥ嚱鏁幫紙鎴栧嚱鏁板璞★級f銆傚鏋渇鏈夎繑鍥炲鹼紝灝卞拷鐣ヨ榪斿洖鍊箋傝凱浠e櫒鏄緭鍏ヨ凱浠e櫒錛屾墍浠涓嶈兘鍐欏厓绱犮?

鍑芥暟琛屼負綾諱技浜庤繖鏍鳳細

template<class InputIterator, class Function>

Function for_each(InputIterator first, InputIterator last, Function f)

{

while (first!=last)

f(*first++);

return f;

}

鍏充簬f鐨勫畾涔夛細

Unary function taking an element in the range as argument. This can either be a pointer to a function or an object whose class overloads operator().
Its return value, if any, is ignored.

渚嬪瓙錛?/p>

//for_each example

#include <iostream>

#include <algorithm>

#include <vector>

using namespace std;

void myfunction(int i)

{

cout << "myfunction: " << i << endl;

}

struct myclass

{

void operator()(int i) { cout << "myclass: " << i << endl; }

}myobject;

int main()

{

vector<int> myvector;

myvector.push_back(10);

myvector.push_back(20);

myvector.push_back(30);

cout << "myvector contains: " << endl;

for_each(myvector.begin(),myvector.end(),myfunction);

cout << "myvector contains: " << endl;

for_each(myvector.begin(),myvector.end(),myobject);

return 0;

}


杈撳嚭錛?

myvector contains:

myfunction: 10

myfunction: 20

myfunction: 30

myvector contains:

myclass: 10

myclass: 20

myclass: 30

izualzhy 2011-11-09 23:09 鍙戣〃璇勮
]]>
[杞琞鍏充簬STL-map璁茬殑寰堜笉閿欑殑涓綃囨枃绔?/title><link>http://m.shnenglu.com/izualzhy/archive/2011/10/20/158783.html</link><dc:creator>izualzhy</dc:creator><author>izualzhy</author><pubDate>Thu, 20 Oct 2011 14:24:00 GMT</pubDate><guid>http://m.shnenglu.com/izualzhy/archive/2011/10/20/158783.html</guid><wfw:comment>http://m.shnenglu.com/izualzhy/comments/158783.html</wfw:comment><comments>http://m.shnenglu.com/izualzhy/archive/2011/10/20/158783.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/izualzhy/comments/commentRss/158783.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/izualzhy/services/trackbacks/158783.html</trackback:ping><description><![CDATA[<p><font color="#ff0000"><strong>涓錛歮ap鏄叧鑱斿紡瀹瑰櫒錛屽畠鎻愪緵涓瀵逛竴鐨勬槧灝?/strong></font>銆傚瓨鍌ㄧ殑鏁版嵁鏈変袱涓儴鍒嗭紝涓涓槸鍏抽敭瀛楋紝涓涓槸鍊鹼紝鍏朵腑鍏抽敭瀛楀彧鑳藉嚭鐜頒竴嬈★紝鑰屼笉鍚岀殑鍏抽敭瀛楋紝鍙互鏈夌浉鍚岀殑鍊箋俶ap涓敤pair鏉ュ瓨鍌ㄨ繖涓や釜鍊肩殑銆俻air鏄痵tl瀹氫箟鐨勪竴縐嶆暟鎹粨鏋勶紝鍚庨潰浼氭湁綆榪般俶ap鍐呴儴鑷緩涓棰楃孩榛戞爲錛屾墍鏈塵ap閲岄潰鐨勬暟鎹兘鏄湁搴忕殑銆?<p><font color="#ff0000"><strong>浜岋細鏂規硶</strong></font> <p><b>1.</b><b>鏋勯犲嚱鏁?/b>錛宮ap鏈?涓瀯閫犲嚱鏁般備絾鏄垜浠氬父鐢╩ap<type1,type2> m;榪欑鏂規硶鏉ユ瀯閫犱竴涓猰ap瀹炰緥銆?<p><b>2.</b><b>鏁版嵁鎻掑叆</b>錛宮ap閫氬父鐢ㄤ笅闈㈢殑涓夌鏂瑰紡鎻掑叆鏁版嵁銆?<p>1),鐢╥nsert鏂規硶鎻掑叆pair鏁版嵁銆?/p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 1: <span style="color: #0000ff">void</span> main( VOID ) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 2: { </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 3: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>> m; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 4: m.insert(pair<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>("<span style="color: #8b0000">sa</span>",67)); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 5: m.insert(make_pair<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>("<span style="color: #8b0000">sd</span>",565));<span style="color: #008000">//鐢╩ake_pair鏂規硶(鍑芥暟)浜х敓pair瀵硅薄銆?/span> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 6: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::iterator it = m.begin(); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 7: <span style="color: #0000ff">while</span>(it!=m.end()) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 8: { </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 9: cout<<it->first<<"<span style="color: #8b0000"> </span>"<<it->second<<endl; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 10: it++; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 11: } </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 12: }</pre></pre> <p>2,)鐢╥nsert鍑芥暟鎻掑叆value_type鏁版嵁銆?/p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 1: <span style="color: #0000ff">void</span> main( VOID ) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 2: { </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 3: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>> m; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 4: m.insert(map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::value_type("<span style="color: #8b0000">sd</span>",5)); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 5: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::iterator it = m.begin(); </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 6: <span style="color: #0000ff">while</span>(it!=m.end()) </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 7: { </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 8: cout<<it->first<<"<span style="color: #8b0000"> </span>"<<it->second<<endl; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 9: it++; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 10: } </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 11: }</pre></pre> <p>鍏跺疄榪欎釜鏂規硶鍜屼笂闈㈢殑鏈川涓婃槸涓鏍風殑銆傚洜涓簐alud_type 灝辨槸pair綾誨瀷鐨勶紝鍙槸鎹釜鏂規硶鑰屽凡錛屽彲浠ラ氳繃 cout<<typeid(map<string,int>::value_type).name()鏉ヨ幏寰?value_type鐨勭被鍨嬶紝寰楀埌綾誨瀷涓? <p>struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,int>璇存槑鏄釜struct pair綾誨瀷鐨勩? <p>3,)閫氳繃閲嶈澆[]鏉ユ彃鍏ユ暟鎹?/p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 1: <span style="color: #0000ff">void</span> main( VOID ) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 2: { </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 3: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>> m; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 4: cout<<typeid(map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::value_type).name()<<endl; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 5: m["<span style="color: #8b0000">ds</span>"] = 4; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 6: m["<span style="color: #8b0000">ds</span>"] = 10; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 7: map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::iterator it = m.begin(); </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 8: <span style="color: #0000ff">while</span>(it!=m.end()) </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 9: { </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 10: cout<<it->first<<"<span style="color: #8b0000"> </span>"<<it->second<<endl; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 11: it++; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 12: } </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> 13: }</pre></pre> <p>榪欑娉曞紡鏄氳繃閲嶈澆[]鏉ュ疄鐜扮殑錛屼絾鏄渶瑕佹敞鎰忕殑鏄紝榪欑娉曞紡鍜屽墠涓ょ鏈夋湰璐ㄧ殑鍖哄埆錛岀湅涓嬮潰鐨勪唬鐮? <p>m.insert(pair<string,int>("ds",5)); <p>m.insert(pair<string,int>("ds",15)); <p>褰撳叧閿瓧鐩稿悓鐨勬椂鍊欙紝涓嶄細鏀瑰彉浠栫殑鍊鹼紝涔熷氨鏄鍦ㄨ皟鐢╥nsert鍑芥暟鐨勬椂鍊欙紝浼氭鏌ワ紝榪欎釜鍏抽敭瀛楁槸鍚﹀瓨鍦ㄤ簡錛屽鏋滃瓨鍦紝閭d箞灝變笉鍋氫換浣曟搷浣溿傚惁鍒欐彃鍏ユ柊鐨勬暟鎹? <p>m["ds"] = 4; <p>m["ds"] = 10; <p>榪欑鏂瑰紡鎻掑叆鏁版嵁鏄笉浼氬仛媯鏌ョ殑錛屼細鐩存帴鍦ㄩ偅涓偣涓婂啓涓婂叧閿瓧鍜屽鹼紝涔熷氨鏄銆俤s欏圭殑鍊煎皢鏄?0. <p><b>3</b><b>錛屾暟鎹亶鍘嗐?/b> <p>stl閲岀殑瀹瑰櫒鐨勯亶鍘嗛兘鏄氳繃榪唬鍣ㄦ潵閬嶅巻鐨勩傚嵆渚挎槸鐢ㄦ暟緇勭殑鏂瑰紡錛屼篃鏄氳繃榪唬鍣ㄣ傛暟鎹亶鍘嗕篃鏈変笁縐嶆硶寮忥紝1錛屽悜鍓嶈凱浠e櫒錛?錛岀敤鍙嶅悜榪唬鍣紝3錛屾暟緇勶紝絎竴縐嶆柟寮忓墠闈篃灝辨湁璇存槑銆備笅闈㈣絎簩絎笁縐嶏紝 <p>鍙嶅悜榪唬鍣ㄧ殑鏂瑰紡銆? <p>榪欐牱鏄互鐩稿弽鐨勬硶寮忚緭鍑虹殑銆? <p>鏁扮粍鏂瑰紡</p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">void</span> main( VOID ) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">{ </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>> m; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">m["<span style="color: #8b0000">ds</span>"] = 4; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">m["<span style="color: #8b0000">as</span>"] = 10; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">m.insert(pair<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>("<span style="color: #8b0000">cs</span>",5)); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">m["<span style="color: #8b0000">bs</span>"] = 123; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::iterator it = m.begin(); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">for</span>(<span style="color: #0000ff">int</span> i=1;i<=m.size();i++) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">{ </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout<<m[it->first]<<endl;<span style="color: #008000">//榪欓噷鏄敤閲嶈澆[]鏉ュ緱鍒皏alue鐨勩?/span> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">it++; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">} </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">}</pre></pre> <p><b>4 .</b><b>鏁版嵁鐨勬煡鎵撅紙鍖呮嫭鍒ゅ畾榪欎釜鍏抽敭瀛楁槸鍚﹀湪map</b><b>涓嚭鐜幫級</b> <p>鍦ㄨ繖閲屾垜浠皢浣撲細錛宮ap鍦ㄦ暟鎹彃鍏ユ椂淇濊瘉鏈夊簭鐨勫ソ澶勩? <p>瑕佸垽瀹氫竴涓暟鎹紙鍏抽敭瀛楋級鏄惁鍦╩ap涓嚭鐜扮殑鏂規硶姣旇緝澶氾紝榪欓噷鏍囬铏界劧鏄暟鎹殑鏌ユ壘錛屽湪榪欓噷灝嗙┛鎻掔潃澶ч噺鐨刴ap鍩烘湰鐢ㄦ硶銆? <p>榪欓噷緇欏嚭涓?2)縐嶆暟鎹煡鎵炬柟娉? <p>絎竴縐嶏細鐢╟ount鍑芥暟鏉ュ垽瀹氬叧閿瓧鏄惁鍑虹幇錛屽叾緙虹偣鏄棤娉曞畾浣嶆暟鎹嚭鐜頒綅緗?鐢變簬map鐨勭壒鎬э紝涓瀵逛竴鐨勬槧灝勫叧緋伙紝灝卞喅瀹氫簡count鍑芥暟鐨勮繑鍥炲煎彧鏈変袱涓紝瑕佷箞鏄?錛岃涔堟槸1錛屽嚭鐜扮殑鎯呭喌錛屽綋鐒舵槸榪斿洖1浜? <p>絎簩縐嶏細鐢╢ind鍑芥暟鏉ュ畾浣嶆暟鎹嚭鐜頒綅緗紝瀹冭繑鍥炵殑涓涓凱浠e櫒錛屽綋鏁版嵁鍑虹幇鏃訛紝瀹冭繑鍥炴暟鎹墍鍦ㄤ綅緗殑榪唬鍣紝濡傛灉map涓病鏈夎鏌ユ壘鐨勬暟鎹紝瀹冭繑鍥炵殑榪唬鍣ㄧ瓑浜巈nd鍑芥暟榪斿洖鐨勮凱浠e櫒</p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <iostream> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <fstream> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <<span style="color: #0000ff">string</span>> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <map> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">using</span> <span style="color: #0000ff">namespace</span> std; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">void</span> main() </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">{ </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//瀹氫箟map 瀵硅薄</span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>> word; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//瀹氫箟鎸囬拡</span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::iterator it; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//鍚憌ord 鎻掑叆鍏冪礌 ("a",9)</span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">word.insert (map<<span style="color: #0000ff">string</span>,<span style="color: #0000ff">int</span>>::value_type("<span style="color: #8b0000">a</span>",9)); </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//鏌ユ壘 閿槸"a"鐨勫厓绱狅紝榪斿洖鎸囧悜鍏冪礌鐨勬寚閽堛?/span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">it=word.find ("<span style="color: #8b0000">a</span>"); </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//濡傛灉鍏冪礌涓嶅瓨鍦紝鎸囬拡鎸囧悜word.end().</span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">if</span>(it!=word.end ()) </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout<<it->second<<endl; <span style="color: #008000">//杈撳嚭鍏冪礌鐨勫?/span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//鏌ユ壘 閿槸"a"鐨勫厓绱狅紝</span> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">int</span> result=word.count ("<span style="color: #8b0000">a</span>"); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #008000">//濡傛灉閿瓨鍦ㄨ繑鍥?錛屽惁鍒欒繑鍥?</span> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">if</span>(result) </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout<<word["<span style="color: #8b0000">a</span>"]<<endl; <span style="color: #008000">//杈撳嚭鍏冪礌鐨勫?/span> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout<<endl; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">}</pre></pre> <p><b>5.</b><b>鏁版嵁娓呯┖錛屾垨鍒ょ┖錛?/b> <p>娓呯┖鏁版嵁鐢╟lear鍑芥暟錛屽垽鏂暟鎹槸鍚︽槸絀虹敤empty鍑芥暟銆? <p><b>6.</b><b>鏁版嵁鍒犻櫎銆?/b> <p>鏁版嵁鍒犻櫎鐢╡rase鍑芥暟錛岃繖涓嚱鏁版湁3涓噸杞藉嚱鏁幫紝鐢ㄧ殑鏃跺欙紝鍙殢鏈鴻岀敤銆傛敞鎰忕敤榪欎釜鍑芥暟鍚庯紝鐩稿叧鐨勮凱浠e櫒灝嗕細澶辨晥銆? <p><font color="#ff0000"><strong>涓夛細pair鏄痵tl閲?鐩墠鎴戠煡閬撶殑)瀹氫箟鐨勪竴涓猻truct</strong>錛?/font>鍦╩sdn涓婃煡鍒板涓嬬殑淇℃伅銆? <p>template<class Type1, class Type2> <p>struct pair <p>{ <p>typedef Type1 first_type; <p>typedef Type2 second_type <p>Type1 first; <p>Type2 second; <p>pair( ); <p>pair( <p>const Type1& __Val1, <p>const Type2& __Val2 <p>); <p>template<class Other1, class Other2> <p>pair( <p>const pair<Other1, Other2>& _Right <p>); <p>涓庝箣鐩稿叧鐨勬槸make_pair鍑芥暟銆傛槸涓ā鏉垮嚱鏁般? <p>template<class Type1, class Type2> pair<Type1, Type2> make_pair( Type1 _Val1, Type2 _Val2 ); <p><strong><font color="#ff0000">鍥涳細鍏充簬map鐨勮凱浠e櫒錛?/font></strong> <p>瀵規暟鎹殑鎻掑叆錛岄亶鍘嗭紝鏌ユ壘絳夋搷浣滐紝榪唬鍣ㄥ皢涓嶄細澶辨晥錛屼絾鏄垹闄ゆ搷浣滀細澶辨晥銆傝繖涓巚ector絳夊簭鍒楀紡瀹瑰櫒鏄笉涓鏍風殑銆? <p><font color="#ff0000"><strong>浜旓細鏁堢巼</strong></font> <p>鍥犱負鍐呴儴RB-TREE鎵浠ュぇ澶氭暟鐨勬搷浣滅殑鏃墮棿澶嶆潅搴﹂兘鏄疧(logN)錛岀┖闂村垎鏋愶紝鍦ㄨ繖浜涜妭鐐逛笉淇濆瓨鏁版嵁鐨勬儏鍐典笅灝遍渶瑕侊紝宸﹀彸瀛╁瓙鎸囬拡錛屾寚鍚戠埗鑺傜偣鐨勬寚閽堬紝璇存槑綰㈤粦鐨勬灇涓懼箋? <p><font color="#ff0000"><strong>鍏細map鐨刱ey鐨勬瘮杈冿細</strong></font> <p>value_compare value_comp ( ) const; <p>鍏惰繑鍥炲兼槸涓涓瘮杈冪被鐨勫璞★紝榪欎釜綾繪槸map::value_compare錛屽茍涓旀槸map鐨勪竴涓唴閮ㄧ被銆? <p>榪斿洖鐨勮繖涓璞″彲浠ョ敤鏉ラ氳繃姣旇緝涓や釜鍏冪礌鐨剉alue鏉ュ垽鍐沖畠浠搴旂殑key鍦╩ap鐨勪綅緗皝鍦ㄥ墠闈㈣皝鍦ㄥ悗闈€? <p>涓嬮潰鏄竴涓畝鍗曠殑渚嬪瓙錛岀湅涓涓嬪氨浼氭洿鏄庣櫧浜?</p><pre style="border-bottom: #cecece 1px solid; border-left: #cecece 1px solid; padding-bottom: 5px; background-color: #ffffff; min-height: 40px; padding-left: 5px; width: 650px; padding-right: 5px; overflow: auto; border-top: #cecece 1px solid; border-right: #cecece 1px solid; padding-top: 5px"><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <iostream> </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">#include <map> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">using</span> <span style="color: #0000ff">namespace</span> std; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"></pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">int</span> main () </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">{ </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">char</span>,<span style="color: #0000ff">int</span>> mymap; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">map<<span style="color: #0000ff">char</span>,<span style="color: #0000ff">int</span>>::iterator it; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">pair<<span style="color: #0000ff">char</span>,<span style="color: #0000ff">int</span>> highest; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">mymap['x']=1001; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">mymap['y']=2002; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">mymap['z']=3003; </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout << "<span style="color: #8b0000">mymap contains:\n</span>"; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">highest=*mymap.rbegin(); <span style="color: #008000">// last element</span> </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">it=mymap.begin(); </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">do</span> { </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">cout << (*it).first << "<span style="color: #8b0000"> => </span>" << (*it).second << endl; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">} <span style="color: #0000ff">while</span> ( mymap.value_comp()(*it++, highest) ); </pre><pre style="background-color: #c0c0c0; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"><span style="color: #0000ff">return</span> 0; </pre><pre style="background-color: #ffff80; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">}</pre></pre> <p>杈撳嚭緇撴灉: <p>mymap contains: <p>x => 1001 <p>y => 2002 <p>z => 3003 <p>瑙i噴涓涓嬶紝涓婇潰璇彞while閲岄潰鐨刴ymap.value_comp()(*it++, highest)鍦ㄨ繖鏍風殑鏉′歡涓嬩細榪斿洖true: <p>*it++瀵瑰簲鐨刱ey鍦╩ap涓帓鍦╤ighest瀵瑰簲鐨刱ey鐨勫墠闈㈡椂銆?/p><img src ="http://m.shnenglu.com/izualzhy/aggbug/158783.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/izualzhy/" target="_blank">izualzhy</a> 2011-10-20 22:24 <a href="http://m.shnenglu.com/izualzhy/archive/2011/10/20/158783.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬size_t涓巗ize_typehttp://m.shnenglu.com/izualzhy/archive/2011/10/18/158636.htmlizualzhyizualzhyTue, 18 Oct 2011 14:40:00 GMThttp://m.shnenglu.com/izualzhy/archive/2011/10/18/158636.htmlhttp://m.shnenglu.com/izualzhy/comments/158636.htmlhttp://m.shnenglu.com/izualzhy/archive/2011/10/18/158636.html#Feedback0http://m.shnenglu.com/izualzhy/comments/commentRss/158636.htmlhttp://m.shnenglu.com/izualzhy/services/trackbacks/158636.html闂璧鋒簮浜庤繖鏍蜂竴孌典唬鐮侊細

01 #include <algorithm>
02 #include <stdio.h>
03
04 int main()
05 {
06 聽聽聽 size_t indexs = -1;
07 聽聽聽 size_t ps = 100;
08 聽聽聽 int index = -1;
09 聽聽聽 int p = 100;
10 聽聽聽 printf("%d\n",std::min(p,index));
11 聽聽聽 printf("%d\n",std::min(ps,indexs));
12 聽聽聽 return 0;
13 }

鍏跺疄鏄緢綆鍗曠殑棰樼洰錛屼笉榪囪瀵箂ize_t綾誨瀷鏈変竴涓簡瑙f墠琛屻?

鍏充簬size_t鐨勬潵婧?/strong>錛?

鏁版嵁綾誨瀷"socklen_t"鍜宨nt搴旇鍏鋒湁鐩稿悓鐨勯暱搴︺傚惁鍒欏氨浼氱牬鍧?BSD濂楁帴瀛楀眰鐨勫~鍏?POSIX寮濮嬬殑鏃跺欑敤鐨勬槸size_t, Linus Torvalds(浠栧笇鏈涙湁鏇村鐨勪漢,浣嗘樉鐒朵笉鏄緢澶? 鍔姏鍚戜粬浠В閲婁嬌鐢╯ize_t鏄畬鍏ㄩ敊璇殑,鍥犱負鍦?4浣嶇粨鏋勪腑 size_t鍜宨nt鐨勯暱搴︽槸涓嶄竴鏍風殑,鑰岃繖涓弬鏁?涔熷氨鏄痑ccept鍑芥暟鐨勭涓夊弬鏁?鐨勯暱搴﹀繀欏誨拰int涓鑷?鍥犱負榪欐槸BSD濂楁帴瀛楁帴鍙f爣鍑?鏈緇圥OSIX鐨勯偅甯浼欐壘鍒頒簡瑙e喅鐨勫姙娉?閭e氨鏄垱閫犱簡涓涓柊鐨勭被鍨?socklen_t".Linux Torvalds璇磋繖鏄敱浜庝粬浠彂鐜頒簡鑷繁鐨勯敊璇絾鍙堜笉濂芥剰鎬濆悜澶у浼欏効鎵胯,鎵浠ュ彟澶栧垱閫犱簡涓涓柊鐨勬暟鎹被鍨?銆?

size_t鍦–璇█涓氨鏈変簡錛宻ize_t鍜宻size_t鏄疉NSI C鎻愪緵鐨勬爣鍑嗗ご鏂囦歡閲屽畾涔夌殑涓涓?鏁版嵁綾誨瀷"錛屽叾瀹炲茍涓嶆槸鏂扮殑鏁版嵁綾誨瀷錛屼笉鏄叧閿瓧錛屾槸閫氳繃typedef浠庡凡鏈夋暟鎹被鍨嬪畾涔夎屾潵銆?

ANSI C鎬誨叡鎻愪緵浜?4涓ご鏂囦歡銆?

<cstddef>閲岃繖涔堝畾涔変簡

#include <stddef.h>

using ::size_t

using::ptrdiff_t

鍦?usr/lib/gcc/i486-linux-gnu/4.4/include涓嬮潰

<stddef.h>閲岄潰鎴戞壘鍒頒簡榪欎箞鍑犲彞錛?

#ifndef __SIZE_TYPE__

#define __SIZE__TYPE__ long unsigned int

#endif

#if !(defined(__GUNU__) && defined (size_t))

typedef __SIZE_TYPE__ size_t;

#ifdef __BEOS

typedef long ssize_t

鈥?

娌″お鐪嬫槑鐧斤紝涓嶈繃浠庣綉涓婃壘鍒頒簡涓嶉敊鐨勪竴涓?strong>瑙i噴錛?

size_t鏄負浜嗘柟渚跨郴緇熶箣闂寸殑縐繪鑰屽畾涔夌殑銆?

鍦?2浣嶇郴緇熶笂瀹氫箟涓?unsigned int

鍦?4浣嶇郴緇熶笂瀹氫箟涓?unsigned long

鏇村噯紜殑璇存硶鏄湪32浣嶇郴緇熶笂鏄?2浣嶆棤絎﹀彿鏁村瀷

鍦?4浣嶇郴緇熶笂鏄?4浣嶆棤絎﹀彿鏁村瀷

size_t涓鑸敤鏉ヨ〃紺轟竴縐嶈鏁幫紝姣斿鏈夊灝戜笢瑗胯鎷瘋礉絳夈?

sizeof鎿嶄綔絎︾殑緇撴灉綾誨瀷鏄痵ize_t,

璇ョ被鍨嬩繚璇佽兘瀹圭撼瀹炵幇鎵寤虹珛鐨勬渶澶у璞$殑瀛楄妭澶у皬銆?

瀹冪殑鎰忎箟澶ц嚧鏄?閫備簬璁¢噺鍐呭瓨涓彲瀹圭撼鐨勬暟鎹」鐩殑涓暟鐨勬棤絎﹀彿鏁存暟綾誨瀷"銆?

鎵浠ワ紝瀹冨湪鏁扮粍涓嬫爣鍜屽唴瀛樼鐞嗗嚱鏁頒箣綾葷殑鍦版柟騫挎硾浣跨敤

ssize_t:

榪欎釜鏁版嵁綾誨瀷鐢ㄦ潵琛ㄧず鍙互琚墽琛岃鍐欐搷浣滅殑鏁版嵁鍧楃殑澶у皬銆傚畠鍜宻ize_t綾諱技錛屼絾蹇呴』鏄痵igned銆?

鍐嶆潵鐪嬩笅size_t涓巗ize_type鐨勫尯鍒?/strong>錛?

鎴戣寰楁湁涓鍙ヨ瘽鎬葷粨鐨勫緢濂斤細

size_t鏄叏灞鐨勶紝鑰宻ize_type鏄窡瀹瑰櫒鐩稿叧鐨勩?

鎵句簡涓嬬浉鍏崇殑鏂囦歡錛?

/c++/4.3/bits/stl_tree.h,stl_list.h,stl_deque.h絳夌洿鎺ヨ繖涔堝畾涔変簡

typedef size_t size_type

stl_mutiset.h鍒欒繖涔堝畾涔夌殑錛?

typedef typename _Rep_type::size_type size_type;

閭d箞size_type鍒板簳鏄竴縐嶄粈涔堟牱鐨勭被鍨嬪憿錛?

string綾葷被鍨嬪拰璁稿鍏朵粬搴撶被鍨嬮兘瀹氫箟浜嗕竴浜涢厤濂楃被鍨嬶紙companion type錛夈傞氳繃榪欎簺閰嶅綾誨瀷錛屽簱綾誨瀷鐨勪嬌鐢ㄥ氨鑳戒笌鏈哄櫒鏃犲叧銆俿ize_type灝辨槸榪欎簺閰嶅綾誨瀷涓殑涓縐嶃?

size_type琚畾涔変負涓巙nsigned鍨嬶紙unsigned int, unsigned long錛夊叿鏈夌浉鍚岀殑鍚箟錛岃屼笖鍙互淇濊瘉瓚沖澶ц兘澶熷瓨鍌ㄤ換鎰弒tring瀵硅薄鐨勯暱搴︺備負鑰屾潵浣跨敤鐢眘tring綾誨瀷瀹氫箟鐨剆ize_type綾誨瀷銆傜▼搴忓憳蹇呴』鍔犱笂浣滅敤浜庢搷浣滅鏉ヨ鏄庢墍浣跨敤鐨剆ize_type綾誨瀷鏄敱string綾誨畾涔夌殑銆?

鎴戜滑涓轟粈涔堜笉閫傜敤int鍙橀噺鏉ヤ繚瀛榮tring鐨剆ize鍛紵

浣跨敤int鍙橀噺鐨勯棶棰樻槸錛氭湁浜涙満鍣ㄤ笂鐨刬nt鍙橀噺鐨勮〃紺鴻寖鍥村お灝忥紝鐢氳嚦鏃犳硶瀛樺偍瀹為檯騫朵笉闀跨殑string瀵硅薄銆傚鍦ㄦ湁16浣峣nt鍨嬬殑鏈哄櫒涓婏紝int綾誨瀷鍙橀噺鏈澶у彧鑳借〃紺?2767涓瓧絎︾殑string瀵硅薄銆傝岃兘瀹圭撼涓涓枃浠跺唴瀹圭殑string瀵硅薄杞繪槗灝辮兘瓚呰繃榪欎釜鏁板瓧錛屽洜姝わ紝涓轟簡閬垮厤婧㈠嚭錛屼繚瀛樹竴涓猻tring瀵硅薄鐨剆ize鐨勬渶瀹夊叏鐨勬柟娉曞氨鏄嬌鐢ㄦ爣鍑嗗簱綾誨瀷string錛氾細size_type().

涓鐐規敞鎰?/span>錛氳櫧鐒舵槸鍦ㄥ涔犳爣鍑嗗簱string鐨勬椂鍊欏閥閬囦簡size_type綾誨瀷錛屼絾鏄紝鍏跺疄vector搴撲篃鍙互瀹氫箟size_type綾誨瀷錛屽湪vector搴撲腑榪樻湁涓涓猟ifference_type綾誨瀷錛岃綾誨瀷鐢ㄦ潵瀛樺偍浠諱綍涓や釜榪唬鍣ㄥ璞¢棿鐨勮窛紱伙紝鎵浠ユ槸signed綾誨瀷鐨勩?

鍟板暟鍡﹀棪璇翠簡榪欎箞澶氾紝鍏跺疄鍏充簬榪欎釜闂鏂囩珷閲岀孩瀛楁爣娉ㄧ殑閮ㄥ垎灝辮凍澶熶簡銆傚叾浠栫殑鐪嬩笅鍔犳繁鍗拌薄鍗沖彲錛屾渶寮濮嬬殑紼嬪簭緇撴灉杈撳嚭涓猴細

-1 100銆?



izualzhy 2011-10-18 22:40 鍙戣〃璇勮
]]>
deque欏哄簭瀹瑰櫒http://m.shnenglu.com/izualzhy/archive/2010/11/03/132326.htmlizualzhyizualzhyWed, 03 Nov 2010 12:37:00 GMThttp://m.shnenglu.com/izualzhy/archive/2010/11/03/132326.htmlhttp://m.shnenglu.com/izualzhy/comments/132326.htmlhttp://m.shnenglu.com/izualzhy/archive/2010/11/03/132326.html#Feedback0http://m.shnenglu.com/izualzhy/comments/commentRss/132326.htmlhttp://m.shnenglu.com/izualzhy/services/trackbacks/132326.html

#include <iostream>
#include <deque>
#include <algorithm>

using namespace std;

int main()
{
 deque<double> values;
 ostream_iterator<double> output(cout," ");

 values.push_front(2.2);//鍙傜敤浜巐ist鍜宒eque,鑰屼笉閫備簬vector
 values.push_front(2.3);
 values.push_back(1.1);

 cout << "values contains: ";
 for ( int i=0;i<values.size();i++)
  cout << values[i] << ' ';

 values.pop_front();
 cout << "\nAfter pop_front values contains: ";
 copy(values.begin(),values.end(),output);

 values[1]=5.4;
 cout << "\nAfter values[1]=5.4 values contains: ";
 copy(values.begin(),values.end(),output);
 cout << endl;
 return 0;
}



izualzhy 2010-11-03 20:37 鍙戣〃璇勮
]]>
list欏哄簭瀹瑰櫒http://m.shnenglu.com/izualzhy/archive/2010/11/03/132302.htmlizualzhyizualzhyWed, 03 Nov 2010 09:04:00 GMThttp://m.shnenglu.com/izualzhy/archive/2010/11/03/132302.htmlhttp://m.shnenglu.com/izualzhy/comments/132302.htmlhttp://m.shnenglu.com/izualzhy/archive/2010/11/03/132302.html#Feedback0http://m.shnenglu.com/izualzhy/comments/commentRss/132302.htmlhttp://m.shnenglu.com/izualzhy/services/trackbacks/132302.html闃呰鍏ㄦ枃

izualzhy 2010-11-03 17:04 鍙戣〃璇勮
]]>
榪唬鍣ㄧ畝浠?/title><link>http://m.shnenglu.com/izualzhy/archive/2010/11/03/132285.html</link><dc:creator>izualzhy</dc:creator><author>izualzhy</author><pubDate>Wed, 03 Nov 2010 06:07:00 GMT</pubDate><guid>http://m.shnenglu.com/izualzhy/archive/2010/11/03/132285.html</guid><wfw:comment>http://m.shnenglu.com/izualzhy/comments/132285.html</wfw:comment><comments>http://m.shnenglu.com/izualzhy/archive/2010/11/03/132285.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/izualzhy/comments/commentRss/132285.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/izualzhy/services/trackbacks/132285.html</trackback:ping><description><![CDATA[     鎽樿: 鍏ラ棬鐨勪緥瀛?nbsp; <a href='http://m.shnenglu.com/izualzhy/archive/2010/11/03/132285.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/izualzhy/aggbug/132285.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/izualzhy/" target="_blank">izualzhy</a> 2010-11-03 14:07 <a href="http://m.shnenglu.com/izualzhy/archive/2010/11/03/132285.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://7v51.com" target="_blank">亚洲激情第一区</a>| <a href="http://www-888593.com" target="_blank">亚洲午夜一级</a>| <a href="http://613by.com" target="_blank">欧美高清视频www夜色资源网</a>| <a href="http://26cs.com" target="_blank">欧美一区二区三区男人的天堂</a>| <a href="http://yada-jg.com" target="_blank">国产精品美女</a>| <a href="http://87ssyy.com" target="_blank">久久午夜激情</a>| <a href="http://bodabloc.com" target="_blank">欧美大片在线观看一区</a>| <a href="http://2589999.com" target="_blank">在线视频精品一</a>| <a href="http://6567ya.com" target="_blank">这里是久久伊人</a>| <a href="http://84172199.com" target="_blank">国内精品视频在线观看</a>| <a href="http://www-37277.com" target="_blank">牛人盗摄一区二区三区视频</a>| <a href="http://yssnlp.com" target="_blank">欧美黄色片免费观看</a>| <a href="http://yw3329.com" target="_blank">亚洲砖区区免费</a>| <a href="http://390642.com" target="_blank">久久se精品一区二区</a>| <a href="http://ywy99.com" target="_blank">亚洲激情午夜</a>| <a href="http://8013sf.com" target="_blank">艳妇臀荡乳欲伦亚洲一区</a>| <a href="http://heyzo1031.com" target="_blank">国产精品一区二区久久</a>| <a href="http://8842aa.com" target="_blank">免费观看久久久4p</a>| <a href="http://www-37277.com" target="_blank">欧美日韩亚洲一区二区三区在线观看</a>| <a href="http://www9ckk1.com" target="_blank">亚洲一区二区在线</a>| <a href="http://www5xzz1.com" target="_blank">久久久久久网址</a>| <a href="http://www-369111.com" target="_blank">中文网丁香综合网</a>| <a href="http://szjyf668.com" target="_blank">久久成人亚洲</a>| <a href="http://miandoctor.com" target="_blank">亚洲午夜在线观看</a>| <a href="http://00001xh.com" target="_blank">久久精品国产免费观看</a>| <a href="http://921367.com" target="_blank">正在播放欧美视频</a>| <a href="http://842332.com" target="_blank">久久精品理论片</a>| <a href="http://qiezi2vip.com" target="_blank">亚洲午夜av在线</a>| <a href="http://junmatek.com" target="_blank">久久久久国产精品一区三寸 </a>| <a href="http://avtb2120.com" target="_blank">久久精品国产99精品国产亚洲性色</a>| <a href="http://syntheticnets.com" target="_blank">韩国亚洲精品</a>| <a href="http://7777977.com" target="_blank">夜夜嗨av一区二区三区中文字幕</a>| <a href="http://z169.com" target="_blank">国内久久精品</a>| <a href="http://www66617.com" target="_blank">亚洲美女毛片</a>| <a href="http://by4433.com" target="_blank">一区二区三区在线免费观看</a>| <a href="http://72nnnn.com" target="_blank">亚洲视频观看</a>| <a href="http://xiuxiu124.com" target="_blank">亚洲欧洲日韩在线</a>| <a href="http://caopanjia.com" target="_blank">欧美一级日韩一级</a>| <a href="http://kakatok.com" target="_blank">亚洲午夜免费视频</a>| <a href="http://www11108b.com" target="_blank">可以看av的网站久久看</a>| <a href="http://www-577511.com" target="_blank">欧美一级理论性理论a</a>| <a href="http://www9ckk1.com" target="_blank">欧美精品亚洲精品</a>| <a href="http://989p.com" target="_blank">六月天综合网</a>| <a href="http://ad377.com" target="_blank">国产日韩一区二区三区在线</a>| <a href="http://yahuake.com" target="_blank">亚洲国产综合视频在线观看</a>| <a href="http://www4411n.com" target="_blank">国产日韩在线亚洲字幕中文</a>| <a href="http://033530.com" target="_blank">99国产一区</a>| <a href="http://www35353.com" target="_blank">亚洲精品日韩在线</a>| <a href="http://8842aa.com" target="_blank">久久精品亚洲精品国产欧美kt∨</a>| <a href="http://405151.com" target="_blank">亚洲欧美国产视频</a>| <a href="http://aaddgg66.com" target="_blank">欧美日本免费</a>| <a href="http://zooxoft.com" target="_blank">亚洲欧洲三级电影</a>| <a href="http://dahuxu.com" target="_blank">亚洲黄色一区二区三区</a>| <a href="http://04oy.com" target="_blank">欧美一区激情视频在线观看</a>| <a href="http://wwwn94.com" target="_blank">亚洲欧美色一区</a>| <a href="http://xkm663y.com" target="_blank">欧美男人的天堂</a>| <a href="http://jrtkpx.com" target="_blank">亚洲黄色小视频</a>| <a href="http://649929.com" target="_blank">91久久精品国产91久久性色</a>| <a href="http://tv-miya188.com" target="_blank">久久久久一区二区</a>| <a href="http://haole081.com" target="_blank">久久精品一区二区三区四区</a>| <a href="http://4379d.com" target="_blank">国产女主播一区二区三区</a>| <a href="http://sese135.com" target="_blank">一区二区三区久久精品</a>| <a href="http://343119.com" target="_blank">中日韩视频在线观看</a>| <a href="http://ccly2.com" target="_blank">欧美精品xxxxbbbb</a>| <a href="http://cl6m.com" target="_blank">亚洲精品日韩激情在线电影</a>| <a href="http://667939.com" target="_blank">日韩午夜免费</a>| <a href="http://72avav.com" target="_blank">欧美黄在线观看</a>| <a href="http://ycgg008.com" target="_blank">亚洲黄色影片</a>| <a href="http://www-137999.com" target="_blank">99精品视频免费在线观看</a>| <a href="http://57sa.com" target="_blank">欧美区亚洲区</a>| <a href="http://aqdit2022.com" target="_blank">日韩午夜激情av</a>| <a href="http://by1422.com" target="_blank">亚洲高清在线观看一区</a>| <a href="http://fobdoer.com" target="_blank">久久天天躁狠狠躁夜夜av</a>| <a href="http://ehagakii.com" target="_blank">老司机精品导航</a>| <a href="http://8p3c.com" target="_blank">91久久中文</a>| <a href="http://wxtarena.com" target="_blank">欧美理论电影网</a>| <a href="http://78gde.com" target="_blank">一区二区三区黄色</a>| <a href="http://www30bxbx.com" target="_blank">欧美在线观看一区二区</a>| <a href="http://2938476.com" target="_blank">国内一区二区在线视频观看</a>| <a href="http://725443.com" target="_blank">午夜精品www</a>| <a href="http://3dmh329.com" target="_blank">蜜桃av一区二区在线观看</a>| <a href="http://3bmmxyz.com" target="_blank">亚洲大片av</a>| <a href="http://mom8888.com" target="_blank">欧美高清在线一区</a>| <a href="http://6666785.com" target="_blank">亚洲福利小视频</a>| <a href="http://ycpeixun.com" target="_blank">一区二区三区视频免费在线观看</a>| <a href="http://missav88.com" target="_blank">欧美精品激情在线</a>| <a href="http://www-5013.com" target="_blank">一区二区三区四区五区在线</a>| <a href="http://xprinter3d.com" target="_blank">亚洲欧洲av一区二区</a>| <a href="http://580388.com" target="_blank">国产精品亚洲欧美</a>| <a href="http://www24699.com" target="_blank">欧美伊人精品成人久久综合97</a>| <a href="http://www77577.com" target="_blank">老牛国产精品一区的观看方式</a>| <a href="http://www-577511.com" target="_blank">影音先锋在线一区</a>| <a href="http://qmynong.com" target="_blank">欧美激情按摩在线</a>| <a href="http://mathck.com" target="_blank">午夜精品国产更新</a>| <a href="http://www90aaa.com" target="_blank">蜜桃久久av一区</a>| <a href="http://cxjzcl.com" target="_blank">亚洲免费福利视频</a>| <a href="http://yishangsh.com" target="_blank">国产麻豆日韩</a>| <a href="http://caobenfan1891.com" target="_blank">久久久精品一区</a>| <a href="http://yc0989.com" target="_blank">日韩视频一区</a>| <a href="http://ategpu.com" target="_blank">久久综合亚洲社区</a>| <a href="http://s0247.com" target="_blank">一区二区三区日韩精品</a>| <a href="http://012492.com" target="_blank">国产日韩欧美另类</a>| <a href="http://www123hao.com" target="_blank">欧美精品二区</a>| <a href="http://777777hd.com" target="_blank">欧美一区二区黄色</a>| <a href="http://yc7878.com" target="_blank">亚洲人成网站精品片在线观看 </a>| <a href="http://1323123.com" target="_blank">在线中文字幕一区</a>| <a href="http://2061826.com" target="_blank">国产欧美在线视频</a>| <a href="http://xindefalv.com" target="_blank">欧美不卡激情三级在线观看</a>| <a href="http://yp889.com" target="_blank">一区二区三区四区精品</a>| <a href="http://yyypdq.com" target="_blank">久久综合久久久久88</a>| <a href="http://6055365.com" target="_blank">一区二区三区四区五区精品视频</a>| <a href="http://521531.com" target="_blank">国内外成人在线视频</a>| <a href="http://gztgo.com" target="_blank">欧美日韩在线一区</a>| <a href="http://avicpharm.com" target="_blank">美国成人毛片</a>| <a href="http://483134.com" target="_blank">香蕉亚洲视频</a>| <a href="http://zhipiao998.com" target="_blank">亚洲美女视频在线观看</a>| <a href="http://7357538.com" target="_blank">免费视频最近日韩</a>| <a href="http://wwwqm9.com" target="_blank">久久精品主播</a>| <a href="http://hwlxwp.com" target="_blank">亚洲欧美日韩国产成人精品影院</a>| <a href="http://senlin86.com" target="_blank">在线成人激情</a>| <a href="http://www-119049.com" target="_blank">国产欧亚日韩视频</a>| <a href="http://2302345.com" target="_blank">欧美三级资源在线</a>| <a href="http://fobdoer.com" target="_blank">欧美激情在线狂野欧美精品</a>| <a href="http://xingzhiyin85.com" target="_blank">欧美诱惑福利视频</a>| <a href="http://wwwn94.com" target="_blank">亚洲欧美日本日韩</a>| <a href="http://vpay1314.com" target="_blank">99精品视频免费观看视频</a>| <a href="http://www311pi.com" target="_blank">亚洲第一黄网</a>| <a href="http://uu6623.com" target="_blank">欧美国产日韩亚洲一区</a>| <a href="http://479n.com" target="_blank">久久久久久久久久久久久9999 </a>| <a href="http://223533.com" target="_blank">国产一区视频观看</a>| <a href="http://www5123ri.com" target="_blank">欧美四级在线</a>| <a href="http://luluse882.com" target="_blank">欧美日韩精品二区第二页</a>| <a href="http://dzyhjx.com" target="_blank">久久综合电影一区</a>| <a href="http://tfccrk.com" target="_blank">久久裸体视频</a>| <a href="http://765409.com" target="_blank">欧美中文在线观看国产</a>| <a href="http://xsxcn.com" target="_blank">亚洲欧美一区二区三区极速播放</a>| <a href="http://278263.com" target="_blank">一区二区三区波多野结衣在线观看</a>| <a href="http://jiujiuri8.com" target="_blank">亚洲福利一区</a>| <a href="http://jiujiire.com" target="_blank">亚洲黄色在线</a>| <a href="http://958997.com" target="_blank">亚洲人成在线观看一区二区</a>| <a href="http://95gun.com" target="_blank">欧美激情第4页</a>| <a href="http://4006616309.com" target="_blank">欧美成人久久</a>| <a href="http://hwlxwp.com" target="_blank">欧美成人日韩</a>| <a href="http://5177jy.com" target="_blank">欧美护士18xxxxhd</a>| <a href="http://tefahsop.com" target="_blank">亚洲二区在线观看</a>| <a href="http://7a6a.com" target="_blank">亚洲激情一区二区</a>| <a href="http://xingda-sh.com" target="_blank">亚洲精品一区中文</a>| <a href="http://707fx.com" target="_blank">日韩天堂在线视频</a>| <a href="http://zz9876.com" target="_blank">亚洲夜晚福利在线观看</a>| <a href="http://sikixixw12.com" target="_blank">中文国产成人精品久久一</a>| <a href="http://8004006.com" target="_blank">亚洲精品一区中文</a>| <a href="http://yp889.com" target="_blank">国产精品99久久久久久久久久久久</a>| <a href="http://miaoxp.com" target="_blank">一本在线高清不卡dvd </a>| <a href="http://91chaopron.com" target="_blank">久久久99国产精品免费</a>| <a href="http://by21999.com" target="_blank">欧美在线视频在线播放完整版免费观看 </a>| <a href="http://388268.com" target="_blank">久久精品日产第一区二区</a>| <a href="http://www-14333.com" target="_blank">午夜亚洲视频</a>| <a href="http://3534m.com" target="_blank">久久久久99</a>| <a href="http://hhh699.com" target="_blank">欧美成人一区二区</a>| <a href="http://sdtricoop.com" target="_blank">欧美日韩免费观看一区三区</a>| <a href="http://p54y.com" target="_blank">国产精品福利网站</a>| <a href="http://hkbsi.com" target="_blank">国产亚洲激情在线</a>| <a href="http://123yongjiu.com" target="_blank">激情久久久久久久</a>| <a href="http://s0247.com" target="_blank">亚洲免费成人av电影</a>| <a href="http://feiniao168.com" target="_blank">亚洲午夜免费视频</a>| <a href="http://zd-jm.com" target="_blank">久久精品夜色噜噜亚洲aⅴ</a>| <a href="http://zunguidq.com" target="_blank">久久免费黄色</a>| <a href="http://548710.com" target="_blank">91久久视频</a>| <a href="http://57sa.com" target="_blank">亚洲综合激情</a>| <a href="http://chengli88.com" target="_blank">久久综合伊人77777麻豆</a>| <a href="http://24kshopss.com" target="_blank">欧美激情精品久久久久久黑人</a>| <a href="http://saobi6.com" target="_blank">欧美婷婷久久</a>| <a href="http://8eya.com" target="_blank">在线免费观看日韩欧美</a>| <a href="http://555888666.com" target="_blank">99亚洲精品</a>| <a href="http://www123hao.com" target="_blank">欧美在线视屏</a>| <a href="http://9niuw.com" target="_blank">最新日韩在线视频</a>| <a href="http://2589999.com" target="_blank">亚洲欧美中文日韩v在线观看</a>| <a href="http://mm77gg.com" target="_blank">久久一区二区三区四区</a>| <a href="http://ziwufuren.com" target="_blank">欧美日韩国产三级</a>| <a href="http://nmbgbc.com" target="_blank">国产一级久久</a>| <a href="http://iacapmm.com" target="_blank">99国产欧美久久久精品</a>| <a href="http://cuucs.com" target="_blank">久久精品国产综合精品</a>| <a href="http://283575.com" target="_blank">最新国产精品拍自在线播放</a>| <a href="http://456dv.com" target="_blank">先锋a资源在线看亚洲</a>| <a href="http://lfxhfh.com" target="_blank">欧美成人一区在线</a>| <a href="http://www-78733.com" target="_blank">国产女主播视频一区二区</a>| <a href="http://91mase.com" target="_blank">亚洲老司机av</a>| <a href="http://339505.com" target="_blank">久久网站免费</a>| <a href="http://www-4564949.com" target="_blank">亚洲视频一区二区在线观看</a>| <a href="http://899399com.com" target="_blank">久久综合色婷婷</a>| <a href="http://xhtd688.com" target="_blank">国产精品一级二级三级</a>| <a href="http://988tz.com" target="_blank">日韩午夜av</a>| <a href="http://mathck.com" target="_blank">欧美大片va欧美在线播放</a>| <a href="http://www-798009.com" target="_blank">亚洲欧美www</a>| <a href="http://actskynet.com" target="_blank">欧美另类人妖</a>| <a href="http://woaigougou.com" target="_blank">在线观看一区二区精品视频</a>| <a href="http://928uc.com" target="_blank">亚洲欧美在线一区</a>| <a href="http://91ypp.com" target="_blank">亚洲人成精品久久久久</a>| <a href="http://874805.com" target="_blank">久久一区中文字幕</a>| <a href="http://www-188445.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>