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

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

?? apf.htm

?? /// //Visual C++ 6.0 21天自學(xué)教程
?? HTM
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(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一区二区三区免费野_久草精品视频
日本vs亚洲vs韩国一区三区二区| 欧美日韩高清一区| 粉嫩aⅴ一区二区三区四区五区| 日韩专区一卡二卡| 日本在线观看不卡视频| 免费观看91视频大全| 免费久久99精品国产| 久久99热狠狠色一区二区| 激情国产一区二区| 丁香六月久久综合狠狠色| 不卡电影免费在线播放一区| 99re热视频这里只精品| 91麻豆123| 精品视频在线视频| 在线成人av影院| 精品国产乱码久久久久久夜甘婷婷| 久久综合九色综合97婷婷女人| 久久精品在线免费观看| 国产精品久久久久aaaa| 不卡的av电影在线观看| 91色porny| 欧美日韩国产大片| 精品国产一区久久| 国产精品热久久久久夜色精品三区| 国产精品国产三级国产三级人妇| 亚洲女同ⅹxx女同tv| 亚洲大片精品永久免费| 美国三级日本三级久久99| 国产一区二区三区在线观看精品 | 男人的天堂亚洲一区| 久久国产综合精品| 成人福利电影精品一区二区在线观看| 色婷婷精品大在线视频| 欧美一区二区三区性视频| 国产农村妇女精品| 亚洲国产精品一区二区www在线 | 成人性生交大合| 欧美性一级生活| 久久久综合九色合综国产精品| 日韩毛片高清在线播放| 亚洲成人福利片| 韩国女主播成人在线观看| 色偷偷久久一区二区三区| 欧美一区二区在线不卡| 国产精品久久一卡二卡| 日韩vs国产vs欧美| heyzo一本久久综合| 日韩欧美在线观看一区二区三区| 国产欧美日韩视频在线观看| 五月婷婷综合激情| av在线一区二区| 欧美成人艳星乳罩| 亚洲精品v日韩精品| 国产综合色精品一区二区三区| 一本一道波多野结衣一区二区| 欧美精品一区男女天堂| 亚洲伊人色欲综合网| 国产suv精品一区二区883| 欧美高清你懂得| 中文字幕在线视频一区| 蜜臀a∨国产成人精品| 色综合久久99| 国产精品天美传媒| 蜜桃视频在线观看一区二区| 91麻豆swag| 中文字幕精品—区二区四季| 毛片一区二区三区| 91成人在线观看喷潮| 国产蜜臀av在线一区二区三区| 蜜桃一区二区三区在线| 欧美系列在线观看| 亚洲色图都市小说| 成人综合婷婷国产精品久久 | 日韩精品一区二区三区视频播放 | jlzzjlzz亚洲日本少妇| 久久伊人蜜桃av一区二区| 天天综合天天综合色| 色综合咪咪久久| 中文字幕成人在线观看| 美女一区二区三区| 欧美久久久久久久久| 亚洲一区视频在线| 色天使色偷偷av一区二区| 国产精品污污网站在线观看| 国产在线播放一区二区三区| 欧美一卡二卡在线观看| 婷婷国产在线综合| 欧美亚洲一区二区三区四区| 专区另类欧美日韩| 91丨porny丨中文| 国产精品传媒视频| 成人免费视频一区| 欧美激情艳妇裸体舞| 国产成人亚洲精品狼色在线| 久久人人超碰精品| 国产精品911| 中文字幕精品一区二区三区精品| 国产剧情在线观看一区二区| 久久无码av三级| 国产盗摄女厕一区二区三区| 久久久91精品国产一区二区三区| 狠狠狠色丁香婷婷综合激情| 欧美刺激午夜性久久久久久久| 蜜桃精品视频在线| wwww国产精品欧美| 国产91高潮流白浆在线麻豆| 欧美极品少妇xxxxⅹ高跟鞋| 懂色av一区二区夜夜嗨| 国产精品免费网站在线观看| www.色综合.com| 亚洲在线免费播放| 91精品久久久久久久91蜜桃| 日产国产欧美视频一区精品| 日韩欧美国产综合| 国产精品影视在线观看| 国产精品全国免费观看高清| 91亚洲资源网| 亚洲第一综合色| 日韩午夜激情av| 国产自产2019最新不卡| 欧美激情在线看| 91国在线观看| 日产国产欧美视频一区精品| 久久久亚洲精品一区二区三区| 成人av网在线| 亚洲高清一区二区三区| 日韩欧美一二三| 国产成a人亚洲| 亚洲精品水蜜桃| 91精品国产麻豆| 国产91精品精华液一区二区三区| 亚洲美女在线一区| 欧美一区二区在线播放| 国产91精品入口| 亚洲成人av免费| 欧美精品一区二区久久婷婷 | 国产精品免费aⅴ片在线观看| 91成人在线免费观看| 美女精品自拍一二三四| 亚洲国产精品传媒在线观看| 欧美亚洲一区三区| 狠狠色丁香久久婷婷综| 亚洲精品乱码久久久久| 日韩一区二区三区免费观看| 成人黄色在线看| 日韩影视精彩在线| 中日韩av电影| 91精品国产一区二区三区| 成人国产亚洲欧美成人综合网| 亚洲成a人片综合在线| 国产亚洲综合性久久久影院| 欧美日韩aaaaaa| 国产91综合一区在线观看| 亚洲成va人在线观看| 国产精品嫩草影院av蜜臀| 91精品国产综合久久久久久久| 成人免费视频一区| 美女脱光内衣内裤视频久久网站| 国产精品国产三级国产普通话99| 日韩亚洲欧美在线| 在线视频国内自拍亚洲视频| 国产一区二区不卡在线| 亚洲国产综合在线| 国产精品卡一卡二| 亚洲精品一区二区三区香蕉| 欧美日韩在线综合| a美女胸又www黄视频久久| 黄色小说综合网站| 亚洲aaa精品| 亚洲猫色日本管| 国产肉丝袜一区二区| 日韩一二在线观看| 欧美色网站导航| eeuss鲁片一区二区三区在线看| 精品一区二区免费看| 亚洲图片欧美一区| 亚洲人成网站影音先锋播放| 国产视频在线观看一区二区三区| 日韩午夜精品电影| 在线不卡中文字幕播放| 欧美综合亚洲图片综合区| 成人国产免费视频| 国产成人久久精品77777最新版本| 丝袜美腿亚洲综合| 亚洲成人午夜影院| 亚洲美女免费视频| 最近日韩中文字幕| 中文字幕av一区二区三区高 | 国产精品视频你懂的| www精品美女久久久tv| 欧美成人伊人久久综合网| 欧美一区中文字幕| 欧美日韩成人综合在线一区二区| 色狠狠桃花综合| 91小视频免费观看| 91污在线观看| 91蜜桃婷婷狠狠久久综合9色| 成人h版在线观看| 成人黄页毛片网站| av男人天堂一区|