亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? apf.htm

?? /// //Visual C++ 6.0 21天自學(xué)教程
?? HTM
?? 第 1 頁 / 共 5 頁
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD>	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"><SCRIPT LANGUAGE="JavaScript"><!--function popUp(pPage) { var fullURL = document.location; var textURL = fullURL.toString(); var URLlen = textURL.length; var lenMinusPage = textURL.lastIndexOf("/"); lenMinusPage += 1; var fullPath = textURL.substring(0,lenMinusPage); popUpWin = window.open('','popWin','resizable=yes,scrollbars=no,width=525,height=394'); figDoc= popUpWin.document; zhtm= '<HTML><HEAD><TITLE>' + pPage + '</TITLE>'; zhtm += '</head>'; zhtm += '<BODY bgcolor="#FFFFFF">'; zhtm += '<IMG SRC="' + fullPath + pPage + '">'; zhtm += '<P><B>' + pPage + '</B>'; zhtm += '</BODY></HTML>'; window.popUpWin.document.write(zhtm); window.popUpWin.document.close(); // Johnny Jackson 4/28/98 }//-->                                                                </SCRIPT><link rel="stylesheet" href="/includes/stylesheets/ebooks.css">	<META NAME="GENERATOR" Content="Symantec Visual Page Mac 1.1.1">	<TITLE>Teach Yourself Visual C++ 6 in 21 Days -- Appendix F -- Using MFC's Helper Classes</TITLE></HEAD><BODY TEXT="#000000" BGCOLOR="#FFFFFF"><H1 ALIGN="CENTER"><IMG SRC="../button/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM"BORDER="0"><BR>Teach Yourself Visual C++ 6 in 21 Days</H1><CENTER><P><A HREF="../ape/ape.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../index.htm"><IMGSRC="../button/contents.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Contents"BORDER="0"></A> <HR></CENTER><H1 ALIGN="CENTER">- F -<BR>Using MFC's Helper Classes</H1><H1></H1><UL>	<LI><A HREF="#Heading1">Using the Collection Classes</A>	<UL>		<LI><A HREF="#Heading2">Using the Array Classes</A>		<LI><A HREF="#Heading3">Using the List Classes</A>		<LI><A HREF="#Heading4">Using the Map Classes</A>		<LI><A HREF="#Heading5">&Acirc;GetNext(pos)-&gt;m_dDiameter);</A>	</UL>	<LI><A HREF="#Heading6">Using the Coordinate-Handling Classes</A>	<UL>		<LI><A HREF="#Heading7">Using the CPoint Class</A>		<LI><A HREF="#Heading8">Using the CRect Class</A>		<LI><A HREF="#Heading9">&Acirc;AfxMessageBox(&quot;Hit! - ptTest2&quot;);</A>		<LI><A HREF="#Heading10">Using the CSize Class</A>	</UL>	<LI><A HREF="#Heading11">Using the Time-Handling Classes</A>	<UL>		<LI><A HREF="#Heading12">Using the COleDateTime Class</A>		<LI><A HREF="#Heading13">Using the COleDateTimeSpan Class</A>	</UL>	<LI><A HREF="#Heading14">Using the String Manipulation Class</A>	<UL>		<LI><A HREF="#Heading15">Using the CString Class</A>		<LI><A HREF="#Heading16">String Manipulation</A>		<LI><A HREF="#Heading17">Searching Strings</A>		<LI><A HREF="#Heading18">Formatting Text for Display</A>	</UL></UL><P><HR SIZE="4"><BR><I>by Jon Bates</I></P><P><H2><A NAME="Heading1"></A>Using the Collection Classes</H2><P>You'll quickly find that in any object-oriented program you write, objects mustbe grouped and stored into collections of different types and sizes. Once again,the MFC comes to the rescue with sets of easy-to-use classes and templates to helpwith this common requirement.</P><P>The collection classes fall into three broad categories--arrays, maps, and lists--thathave their particular niches.</P><P>Arrays are the mainstay of collection classes and are useful for implementingobject containers. Each object in an array has a zero-based position or index, whichis used to locate and reference the object.</P><P>Lists are useful when you want to think of your data as being linked sequentially,each item to the next. They are useful when you must quickly add or remove itemsto the head or tail of the list. You can also traverse the list forward or backwardfrom one item to the next.</P><P>Maps are used to associate data against a key item such as a string or numberwhere the associations are sparse and random. For example, you might use a map toassociate objects with zip or postal codes. They are good at fast retrieval of objectsgiven the association key and can be used as short-term data caches for large databases.</P><P><H3><A NAME="Heading2"></A>Using the Array Classes</H3><P>MFC provides several predefined array classes and a generic array template sothat you can create arrays to hold your own customized objects. (The latter is coveredlater in this chapter, in the &quot;Creating Custom Collection Classes&quot; section.)</P><P>Several predefined array classes offer quick and easy array access for commontypes of variables and objects, as shown in Table F.1.</P><P><H4>TABLE F.1.&nbsp;PREDEFINED ARRAY-BASED CLASSES.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Array Class</I></TD>		<TD ALIGN="LEFT"><I>Types of Variable Held</I></TD>		<TD ALIGN="LEFT"><I>Numeric Range of Type</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CByteArray</TD>		<TD ALIGN="LEFT">BYTE--8-bit</TD>		<TD ALIGN="LEFT">0 to 255</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">unsigned values</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CWordArray</TD>		<TD ALIGN="LEFT">WORD--16-bit</TD>		<TD ALIGN="LEFT">0 to 65535</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">unsigned values</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CUIntArray</TD>		<TD ALIGN="LEFT">UINT--32-bit</TD>		<TD ALIGN="LEFT">0 to 4294967295</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">unsigned integer</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">values</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CDWordArray</TD>		<TD ALIGN="LEFT">DWORD--32-bit</TD>		<TD ALIGN="LEFT">0 to 4294967295</TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">unsigned integer</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">values</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CStringArray</TD>		<TD ALIGN="LEFT">CString--text</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">string objects</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CObArray</TD>		<TD ALIGN="LEFT">CObject--any</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">CObject-derived</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">objects</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CPtrArray</TD>		<TD ALIGN="LEFT">void*--any object</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">pointers or memory</TD>		<TD ALIGN="LEFT"></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"></TD>		<TD ALIGN="LEFT">addresses</TD>		<TD ALIGN="LEFT"></TD>	</TR></TABLE></P><P>There are several member functions for each array class that differ only by thetype of variables they hold. Each function discussed can be used with any array classesto deal with variables of their corresponding type.</P><P>One of the most useful aspects of these array classes is their capability to growdynamically. Normal C/C++ arrays are predefined in size and can be extended onlyby lots of messy reallocations of memory. The collection classes hide these reallocationsso that you can simply call the Add() member of an array object to add a new value.For example, to add strings to a CStringArray, you can use code similar to this:</P><P><PRE>CStringArray myStringArray;myStringArray.Add(&quot;Red&quot;);myStringArray.Add(&quot;Green&quot;);myStringArray.Add(&quot;Blue&quot;);</PRE><P>You can then find the size of an array by calling the GetSize() function; forexample, the following line used after the previous lines would return three itemsinto nNumberOfItems:</P><P><PRE>int nNumberOfItems = myStringArray.GetSize();</PRE><P>You can also set the array to a specific size using the corresponding SetSize()function, which will extend or truncate the array to the specified size you pass.</P><P>Values can be set to the array by using the SetAt() function that passes a zero-basedindex and the value to be stored. SetAt() will assert whether the index is largerthan the current array size. You can then retrieve values from the array using theGetAt() function, which will return the value at the index position that you specify.You might use these functions with a CWordArray like this:</P><P><PRE>CWordArray myWordArray;myWordArray.SetSize(20);myWordArray.SetAt(0,200);myWordArray.SetAt(19,500);TRACE(&quot;Value at index position 19 is %d\n&quot;,         myWordArray.GetAt(19));</PRE><P>These lines will set the first element of a 20-element array to 200 and the lastto 500 and display the value 500 when executed. You can still grow the array by callingthe Add() function and find the uppermost valid index by calling GetUpperBound(),which will return the zero-based index, or -1 if there are no elements present.</P><P>You can use the [ ] operators to set and get values at a specific index just likea normal C++ array. For example, the GetAt() and SetAt() functions in the previouslines could be replaced with the [ ] operators like this:</P><P><PRE>myWordArray[0] = 200;myWordArray[19] = 500;TRACE(&quot;Value at index position 19 is %d\n&quot;,        myWordArray.GetAt[19]);</PRE><P>Using the InsertAt() and RemoveAt() functions, you can insert or remove itemsat a specific position, which results in all the items shifting up or down by oneor more elements.</P><P>The InsertAt() function has two forms; the first needs an index position and anelement to insert there. You can also optionally pass it a count to insert multiplecopies of the specified element. The second form lets you insert another whole arrayat a specified index position.</P><P>The RemoveAt() function needs only one parameter to specify the index value ofthe item to be removed, but you can also optionally pass a count as the second parameterto remove a number of elements. The remaining array elements will then be shifteddown to fill the gap.</P><P>You can remove all the elements of an array by calling the RemoveAll() function.</P><BLOCKQUOTE>	<P><HR>MANAGING MEMORY WITH COBARRAY<I> </I>AND CPTRARRAY</P>	<P>You must be careful to delete objects that you have allocated with new and stored	in a CObArray or CPtrArray because these arrays only hold pointers to the elements	(not elements themselves). Therefore, a RemoveAll() call will only remove the pointers	to the objects and not free the memory used by the objects themselves. <HR></BLOCKQUOTE><H3><A NAME="Heading3"></A>Using the List Classes</H3><P>There are only three categories of lists as shown in Table F.2 and a templatefor your own types (discussed later). There is seldom any need to have a list ofsimple integer values. Instead, you would probably need a linked list of your ownCObject-derived classes or pointers to a number of C++ classes or structures.</P><P><H4>TABLE F.2.&nbsp;THE LIST-BASED COLLECTION CLASSES.</H4><P><TABLE BORDER="1">	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT"><I>Class Name</I></TD>		<TD ALIGN="LEFT"><I>Type of Variable Held</I></TD>	</TR>	<TR ALIGN="LEFT" VALIGN="TOP">		<TD ALIGN="LEFT">CObList</TD>		<TD ALIGN="LEFT">CObject--Pointers to any CObject-derived objects.</TD>	</TR>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区视频在线观看2020 | 亚洲另类色综合网站| 一区二区日韩电影| 国产精品综合av一区二区国产馆| 91丝袜美腿高跟国产极品老师| 日韩一区二区三免费高清| 中文字幕亚洲综合久久菠萝蜜| 喷水一区二区三区| 91捆绑美女网站| 日本一区二区三区四区在线视频| 青青草原综合久久大伊人精品| 91麻豆免费观看| 国产精品麻豆99久久久久久| 蜜桃精品视频在线观看| 欧美午夜宅男影院| 亚洲乱码中文字幕| 成人毛片在线观看| 中文字幕精品一区二区精品绿巨人 | 国内精品嫩模私拍在线| 欧美日韩和欧美的一区二区| 亚洲欧洲99久久| 国产v日产∨综合v精品视频| 精品国产a毛片| 精品一区二区三区久久| 欧美一二三区在线| 青青草97国产精品免费观看| 88在线观看91蜜桃国自产| 午夜精品免费在线| 欧美日韩成人在线| 天天爽夜夜爽夜夜爽精品视频| 在线亚洲一区二区| 一区二区三区中文字幕电影 | 伊人夜夜躁av伊人久久| av成人免费在线| 亚洲私人黄色宅男| 日本高清免费不卡视频| 一区二区三区在线看| 91久久精品网| 五月激情六月综合| 日韩欧美国产综合一区| 国内一区二区在线| 国产蜜臀97一区二区三区 | 亚洲福利国产精品| 欧美成人三级在线| 日韩中文欧美在线| 精品久久久久久久久久久久久久久久久| 免费成人结看片| 久久综合视频网| 99久久久久久| 午夜精品久久久久久久99樱桃| 9191国产精品| 国产黑丝在线一区二区三区| 亚洲毛片av在线| 在线综合视频播放| 国产酒店精品激情| 亚洲码国产岛国毛片在线| 欧美日韩在线播| 国产一区二区三区精品欧美日韩一区二区三区| wwww国产精品欧美| 91精品办公室少妇高潮对白| 水蜜桃久久夜色精品一区的特点| 久久综合五月天婷婷伊人| 成人免费av网站| 午夜久久久久久久久| 久久夜色精品一区| 99re这里只有精品视频首页| 丝袜美腿亚洲综合| 中文字幕不卡的av| 欧美老女人在线| 国产白丝网站精品污在线入口| 一区二区三区91| 国产视频一区二区在线| 欧美系列在线观看| 成人小视频在线| 视频一区二区不卡| 亚洲视频一区在线| 日韩一区在线免费观看| 欧洲色大大久久| 成人午夜电影久久影院| 日韩电影一区二区三区| 欧美激情一区不卡| 精品美女被调教视频大全网站| 91美女视频网站| 国产一区欧美日韩| 免费成人性网站| 亚洲午夜久久久久久久久久久| 久久精品这里都是精品| 欧美一区二区美女| 在线观看日韩高清av| thepron国产精品| 国产在线精品视频| 七七婷婷婷婷精品国产| 亚洲高清不卡在线观看| 综合久久一区二区三区| 国产欧美日本一区二区三区| 日韩欧美一区电影| 在线成人免费观看| 欧美视频三区在线播放| 91日韩精品一区| 不卡电影一区二区三区| 国产精品资源站在线| 蜜桃一区二区三区在线观看| 亚洲电影第三页| 亚洲三级在线看| 1区2区3区欧美| 亚洲欧洲日韩av| 国产精品每日更新| 亚洲国产精品成人综合色在线婷婷| 欧美一二三在线| 精品美女一区二区三区| 欧美精品一区二区三区蜜臀| 日韩午夜中文字幕| 91精品免费在线| 91精品国产综合久久蜜臀 | 国产一区二区伦理| 黄色日韩网站视频| 国产一区二区三区四| 国产综合久久久久久鬼色| 久久精品国产免费| 国产毛片精品视频| 丰满岳乱妇一区二区三区| 国产精品88888| 成人久久18免费网站麻豆| 成人黄色777网| 色综合天天综合在线视频| 色一情一乱一乱一91av| 在线观看视频欧美| 欧美一区二区三区视频免费播放| 欧美高清视频在线高清观看mv色露露十八 | 1000部国产精品成人观看| 国产精品拍天天在线| 亚洲免费观看在线观看| 亚洲成人7777| 久久精品国产秦先生| 懂色av一区二区三区免费看| 99精品视频中文字幕| 欧美老年两性高潮| 精品国产123| 国产精品久久久久影院老司| 亚洲欧美韩国综合色| 亚洲va欧美va天堂v国产综合| 捆绑调教美女网站视频一区| 国产成人啪午夜精品网站男同| 色综合天天综合色综合av| 69堂成人精品免费视频| 国产亚洲成aⅴ人片在线观看| 最新欧美精品一区二区三区| 亚洲第一av色| 国产福利一区二区三区| 在线观看精品一区| 国产精品理论在线观看| 亚洲3atv精品一区二区三区| 国产资源在线一区| 在线影院国内精品| 久久先锋影音av| 一区二区三区.www| 国产精品18久久久久久vr| 色综合久久天天| 久久九九久精品国产免费直播| 亚洲在线观看免费| 国产乱人伦偷精品视频免下载| 欧美在线视频日韩| 国产免费成人在线视频| 蜜臀99久久精品久久久久久软件| 成人动漫视频在线| 精品88久久久久88久久久| 亚洲在线视频免费观看| 成人永久免费视频| 欧美成人精品3d动漫h| 亚洲一区二区三区不卡国产欧美| 国产精品一区在线观看你懂的| 欧美日本国产视频| 亚洲日本免费电影| 丁香激情综合国产| 久久色在线视频| 日本欧美一区二区| 欧美在线制服丝袜| 亚洲三级电影网站| 国产91丝袜在线播放九色| 日韩欧美卡一卡二| 视频一区在线播放| 在线精品观看国产| 亚洲欧美激情小说另类| 成人激情小说网站| 国产日本亚洲高清| 精品一区二区三区香蕉蜜桃| 91精选在线观看| 亚洲电影中文字幕在线观看| 91社区在线播放| 亚洲婷婷国产精品电影人久久| 国产成人免费视频一区| 久久久久国产精品人| 国产一区二区三区黄视频| 欧美精品一区二区蜜臀亚洲| 另类小说图片综合网| 日韩欧美在线一区二区三区| 美女在线观看视频一区二区| 日韩精品专区在线| 韩国成人精品a∨在线观看| 欧美精品一区二区三区蜜桃|