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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch01.htm

?? 24小時精通VC
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>If you do choose	to use another editor to create your source files, make sure the files are stored	as ASCII, also known as &quot;plain text&quot; files. The Visual C++ compiler cannot	process files that have special formatting characters embedded in them, such as the	files created by word- processing programs. <HR></BLOCKQUOTE><H3><FONT COLOR="#000077"><B>Using Editor Commands</B></FONT></H3><P>A large set of editing commands are available from the keyboard. Although mosteditor commands are also available from the menu or toolbar, the following commandsare frequently used from the keyboard:<UL>	<LI><I>Undo</I>, which reverses the previous editor action, is performed by pressing	Ctrl+Z on the keyboard. The number of undo steps that can be performed is configurable	in the Options dialog box.<BR>	<BR>		<LI><I>Redo</I>, which is used to reverse an undo, is performed by pressing Ctrl+Y.<BR>	<BR>		<LI><I>LineCut</I>, which removes or &quot;cuts&quot; the current line and places	it on the Clipboard, is performed by pressing Ctrl+L.<BR>	<BR>		<LI><I>Cut </I>removes any marked text from the editor and places it on the Clipboard.	This command is performed by pressing Ctrl+X.<BR>	<BR>		<LI><I>Copy</I> copies any marked text to the Clipboard but, unlike the Cut command,	doesn't remove the text from the editor. If no text is marked, the current line is	copied. This command is performed by pressing Ctrl+C.<BR>	<BR>		<LI><I>Paste </I>copies the Clipboard contents into the editor at the insertion point.	This command is performed by pressing Ctrl+V.</UL><P>This is only a small list of the available keyboard commands. To see a completelist, select Keyboard Map... from the Help menu. A list of the current keyboard commandbindings is displayed, as shown in Figure 1.4.</P><P><A NAME="04"></A><A HREF="04.htm"><B>Figure 1.4.</B></A> <I><BR>An example of keyboard command bindings in Developer Studio.</I><H2><FONT COLOR="#000077"><B>Creating Your First C++ Program</B></FONT></H2><P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>A <I>console-mode</I> applicationis a character-based program that runs in a DOS window.</P><P>For your first Visual C++ program, you will build a console-mode program thatdisplays a Hello World greeting. Console-mode programs are often simpler to buildthan Windows applications, and this example will take you through the steps of buildingand running a program built with Visual C++.<H3><FONT COLOR="#000077"><B>Starting Your First Program</B></FONT></H3><P>The first stage in writing your first Visual C++ program is to create a project.Follow these steps:<DL>	<DD>1. Choose File|New from the main menu. The New dialog box will be displayed.<BR>	<BR>	2. Select the Projects tab, and then click the Win32 Console Application icon from	the list box.<BR>	<BR>	3. Specify Hello as the project name in the Project name box; a default location	for your project will automatically be entered in the Location box (see Figure 1.5).</DL><P><A NAME="05"></A><A HREF="05.htm"><B>Figure 1.5.</B> </A><I><BR>The New Projects dialog box for the Hello project.</I><DL>	<DD>4. Click OK to create the project.</DL><H3><FONT COLOR="#000077"><B>Editing Your First C++ Source File</B></FONT></H3><P>The most important parts of any C++ program are the source files. Although thesample program provided in Listing 1.1 is very short, it contains many of the elementspresent in all C++ programs.<H4><FONT COLOR="#000077">TYPE: Listing 1.1. A simple C++ console-mode program.</FONT></H4><PRE><FONT COLOR="#0066FF"><TT>// Hello world example</TT><TT>#include &lt;iostream&gt;</TT><TT>using namespace std;</TT><TT>int main()</TT><TT>{</TT><TT>    cout &lt;&lt; &quot;Hello World!&quot; &lt;&lt; endl;</TT><TT>    return 0;</TT><TT>}</TT></FONT></PRE><P>Open a new source file document and type the program exactly as shown in Listing1.1. As discussed earlier, there are two ways to open a new source file for editing:<UL>	<LI>Click the New Text File icon on the toolbar.<BR>	<BR>		<LI>Select File|New from the main menu, and select C++ Source File from the New dialog	box under the Files tab.</UL><P>If you open a new file for editing while a project is open, you have the optionof automatically adding the file to the currently open project. To take advantageof this option, make sure the Add to Project: check box is checked, and provide aname for the file in the dialog box (in this case use <TT>Hello.cpp</TT>).<BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>CAUTION:</B></FONT><B> </B>When using C++, remember	that capitalization is important. For example, MAIN and main are two different names	to the compiler. White space, such as the number of spaces before a word such as	<TT>cout</TT>, is not significant to the compiler. White space is often used to help	make programs more readable. <HR></P>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>If you used the	toolbar's New Source File icon to create your new source file, syntax highlighting	will not be provided until the file is saved and the file is given a name. This is	because the Developer Studio editor uses the file extension to determine the file	type, and it does not know what type of file is being edited. <HR></BLOCKQUOTE><H3><FONT COLOR="#000077"><B>Saving a Source File</B></FONT></H3><P>After you have entered the program in Listing 1.1, save the source file in yourproject's directory as <TT>Hello.cpp</TT>. To save the contents of the editor, clickthe Save icon on the toolbar. The Save icon looks like a small floppy disk. You canalso press Ctrl+S or select Save from the File menu.</P><P>When updating a previously saved source file, you don't see a dialog box, andno further action is needed on your part. The existing file is updated using thecurrent contents of the editor. If you save a new file, you see the Save As dialogbox, and you must choose a location and filename for the new source file. Save thecontents of Listing 1.1 in the <TT>C:\</TT> directory using the name <TT>CFoo.cpp</TT>.After saving the file, close <TT>CFoo.cpp</TT> by selecting Close from the File menu.</P><P>To save a file under a new name, select Save As from the File menu or press F12.Enter the new path and filename using the Save As dialog box as described previously.</P><P>If you have not yet added the source file to the project, follow these steps:<DL>	<DD>1. Select Project|Add To Project|Files... from the main menu. This will display	the Insert Files into Project dialog box.<BR>	<BR>	2. Select the <TT>Hello.cpp</TT> source file and then click OK.</DL><BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Just a Minute:</B></FONT><B> </B>Visual C++ requires	that your C++ source files have a <TT>.CPP</TT> file extension. This helps Developer	Studio properly compile your source code, as well as provide the proper syntax highlighting.<BR>	Other types of files also have standard extensions. For example, C source files must	use the <TT>.C</TT> extension. Other file extensions will be discussed as they are	introduced. <HR></BLOCKQUOTE><H3><FONT COLOR="#000077"><B>Building the Hello Project</B></FONT></H3><P>Compile the Hello project by selecting Build|Build Hello.exe from the main menu(or press F7). If you entered Listing 1.1 correctly, the project is built with noerrors, and the last line in the status window reads as follows:</P><PRE><FONT COLOR="#0066FF"><TT>HELLO.exe - 0 error(s), 0 warning(s)</TT></FONT></PRE><BLOCKQUOTE>	<P><HR><B> </B><FONT COLOR="#000077"><B>Time Saver:</B></FONT><B> </B>You can also build	the Hello project by clicking the Build button on the toolbar. The toolbar was shown	in Figure 1.3. <HR></BLOCKQUOTE><P>If errors or warnings are displayed in the Build status window, there is probablyan error in the source file. Check your source file again for missing semicolons,quotes, or braces.<H3><FONT COLOR="#000077"><B>Running Your First C++ Program</B></FONT></H3><P>To run the Hello program, open a DOS window and change the working directory tothe project's directory. By default, this directory is</P><PRE><FONT COLOR="#0066FF"><TT>C:\Program File\DevStudio\MyProjects\Hello</TT></FONT></PRE><P>On some machines, filenames may be truncated, so the path on your machine mightbe something like</P><PRE><FONT COLOR="#0066FF"><TT>C:\progra~1\devstudio\myprojects\hello</TT></FONT></PRE><P>You'll see a subdirectory named <TT>DEBUG</TT>. The Visual C++ IDE puts all theexecutable and intermediate files into this directory by default. Change to the <TT>DEBUG</TT>directory and execute the <TT>Hello.exe</TT> program by typing the following at theDOS prompt:</P><PRE><FONT COLOR="#0066FF"><TT>HELLO</TT></FONT></PRE><P>The program loads and then displays <TT>Hello World!</TT>. That's all there isto it.</P><P>All of the console mode or DOS programs used as examples in this book should becompiled and executed just like <TT>Hello.exe</TT>. You'll always create a project,add files to it, and then build the project. After the application is built, youthen go out to DOS and execute the program.<H2><FONT COLOR="#000077"><B>Creating a Windows Program Using AppWizard</B></FONT></H2><P>AppWizard is a tool that generates an MFC project based on options that you select.AppWizard creates all the source files required to make a skeleton project that servesas a starting point for your program. You can use AppWizard to create single-document,multiple-document, or dialog box-based applications.</P><P>AppWizard creates all the source files required to build a skeleton Windows application.It also configures a project for you and allows you to specify the project directory.Although an AppWizard project is a skeleton of a future project, it uses the MFCclass library to include the following functions:<UL>	<LI>Automatic support for the common Windows dialog boxes, including Print, File	Open, and File Save As<BR>	<BR>		<LI>Dockable toolbars<BR>	<BR>		<LI>A status bar<BR>	<BR>		<LI>Optional MAPI, ODBC, and OLE support

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美不卡一区| 国产午夜精品在线观看| 日韩欧美在线网站| 中文字幕二三区不卡| 午夜精品久久久久久久| voyeur盗摄精品| 日韩欧美视频一区| 欧美一区二区免费观在线| 国产欧美一区二区三区在线看蜜臀 | 亚洲女与黑人做爰| 美女视频第一区二区三区免费观看网站 | 国产成人精品免费视频网站| 欧美精品1区2区3区| 国产欧美视频一区二区| 看片的网站亚洲| 在线观看亚洲一区| 26uuu另类欧美| 久草这里只有精品视频| 欧美影院一区二区三区| 国产精品美女一区二区| 麻豆精品一区二区三区| 欧美日产国产精品| 亚洲欧美日韩一区二区| 国产精品99久久久久久久女警| 欧美成人一级视频| 亚洲国产精品精华液网站| 91久久精品一区二区三区| 日本一区二区三区在线观看| 日本视频免费一区| 欧美日韩国产另类不卡| 亚洲色图欧洲色图婷婷| 99精品视频在线观看免费| 久久精品视频免费| 国产精品丝袜在线| av毛片久久久久**hd| 久久人人97超碰com| 国产成人在线影院| 久久免费看少妇高潮| 国产精品一二三四五| 精品国产一区二区精华| 亚洲成人久久影院| 欧美一区二区三区公司| 日韩二区三区在线观看| 日韩一区二区三区高清免费看看| 亚洲一区二区三区免费视频| 在线中文字幕一区二区| 亚洲蜜桃精久久久久久久| 色综合天天天天做夜夜夜夜做| 亚洲欧美色综合| 欧美最猛黑人xxxxx猛交| 一区二区三区在线观看动漫 | 欧美视频在线一区| 日韩精品久久久久久| 欧美日韩一区不卡| 欧美aaa在线| 欧美激情中文字幕一区二区| 成人免费视频一区二区| 一区二区高清在线| 欧美美女黄视频| 国产永久精品大片wwwapp| 国产三级欧美三级日产三级99 | 日韩精品福利网| 欧美成人vps| zzijzzij亚洲日本少妇熟睡| 亚洲欧美日韩精品久久久久| 欧美巨大另类极品videosbest| 无吗不卡中文字幕| 日韩精品在线一区二区| 99久久精品国产精品久久| 一区二区三区在线影院| 欧美主播一区二区三区| 美女任你摸久久| 国产亚洲欧美中文| 在线精品视频免费播放| 亚洲午夜视频在线观看| 日韩欧美色电影| 日韩福利电影在线| 欧美国产在线观看| 日韩亚洲欧美在线| 成人a免费在线看| 免费在线观看一区二区三区| 中文字幕va一区二区三区| 欧美精品乱人伦久久久久久| 国产精品一级二级三级| 日韩黄色片在线观看| 国产欧美日韩在线观看| 色www精品视频在线观看| 麻豆精品一区二区| 亚洲色图一区二区三区| 久久蜜桃av一区精品变态类天堂| 欧美在线观看视频一区二区三区| 国产精品一区二区免费不卡 | 欧美色图免费看| 久久精品av麻豆的观看方式| 亚洲精品成人精品456| 精品国产露脸精彩对白| 国产盗摄女厕一区二区三区| 蜜臀久久99精品久久久久久9| 日韩一区在线免费观看| 欧美韩日一区二区三区四区| 在线成人高清不卡| av中文字幕在线不卡| 亚洲va欧美va人人爽| 亚洲精品成人在线| 国产精品污污网站在线观看| 久久久久国产免费免费| 欧美一区二区高清| 欧美一区二区视频在线观看2022 | 成人毛片在线观看| 精品亚洲免费视频| 日韩和欧美的一区| 天天综合网天天综合色| 亚洲欧美日韩一区| 亚洲精品五月天| 中文字幕中文字幕一区| 日韩欧美国产小视频| 欧美喷水一区二区| 欧美猛男超大videosgay| 色哟哟亚洲精品| 色综合婷婷久久| eeuss鲁片一区二区三区在线看| 丁香五精品蜜臀久久久久99网站 | 日韩欧美国产1| 欧美精品粉嫩高潮一区二区| 欧美区一区二区三区| 欧美精品成人一区二区三区四区| 欧美精品v国产精品v日韩精品| 欧美三区免费完整视频在线观看| 欧美日韩国产片| 欧美一级在线视频| 欧美日韩你懂得| 欧美tickle裸体挠脚心vk| 这里是久久伊人| 国产亚洲欧洲997久久综合| 久久在线观看免费| 成人免费一区二区三区在线观看| 国产精品伦一区二区三级视频| ●精品国产综合乱码久久久久| 一区二区中文视频| 日韩成人午夜精品| 蜜臀av一区二区在线观看| 国产福利精品一区| 成人av网站在线| 青青草成人在线观看| 国产成人精品网址| 不卡一区中文字幕| 7777精品伊人久久久大香线蕉的 | 国产亚洲精品7777| ...av二区三区久久精品| 天天射综合影视| 精品无码三级在线观看视频| 91在线视频观看| 91精品黄色片免费大全| aaa亚洲精品一二三区| 日韩亚洲欧美在线观看| 国产亚洲精品福利| 天天爽夜夜爽夜夜爽精品视频| 免费视频最近日韩| 成人国产一区二区三区精品| 欧美影院一区二区三区| 国产日韩一级二级三级| 一区二区三区欧美激情| 久久91精品久久久久久秒播| 成人免费视频视频| 色综合欧美在线视频区| 日韩欧美二区三区| 久久久蜜桃精品| 日本成人在线网站| 波多野结衣中文字幕一区二区三区| 911精品产国品一二三产区| 国产欧美精品一区| 日本不卡一二三| 成人av先锋影音| 久久久欧美精品sm网站 | 精品播放一区二区| 亚洲v日本v欧美v久久精品| 国产精品996| 日韩免费视频一区二区| 玉足女爽爽91| 91色视频在线| 国产蜜臀av在线一区二区三区| 久久精品国产久精国产| 欧美在线色视频| 一区二区免费在线| 成人一道本在线| 国产亚洲精品aa午夜观看| 奇米一区二区三区av| 欧美日韩国产天堂| 一区二区三区四区高清精品免费观看 | av在线播放一区二区三区| 久久午夜羞羞影院免费观看| 午夜精品影院在线观看| 欧美综合在线视频| 亚洲精品成人在线| 国产呦萝稀缺另类资源| 欧美一级高清片| 亚洲裸体xxx| 欧美色大人视频| 国产精品久久福利| 波多野结衣视频一区|