CodeWarrior软件与编程的讲解(完整版)

上传人:积*** 文档编号:120183329 上传时间:2022-07-16 格式:DOCX 页数:75 大小:245.85KB
返回 下载 相关 举报
CodeWarrior软件与编程的讲解(完整版)_第1页
第1页 / 共75页
CodeWarrior软件与编程的讲解(完整版)_第2页
第2页 / 共75页
CodeWarrior软件与编程的讲解(完整版)_第3页
第3页 / 共75页
点击查看更多>>
资源描述
CodeWarrior 使用教程第一课 结识 CodeWarriorTranslated fromCodeWarriorU.COMCodeWarrior能做些什么?当你懂得自己能写更好的程序时,你一定不会再使用别人开发的应用程序。但是常常会发生这种状况,就是当你写了无数行代码后,却找不到使得整个程序出错的那一行代码,导致主线没法编译和链接整个程序。这也许更令人灰心丧气。本文将告诉你如何使用CodeWarrior这一工具解决上述问题。从目前开始,我们将集中精力学习如何在CodeWarrior中使用C/C+进行编程。为了学习本课程,你必须已经可以比较纯熟地使用上述两种语言之一。CodeWarrior也可以支持Java开发,但那是另一门课程的内容。本课程仅限于在Windows平台上使用CodeWarrior进行的开发。一旦你精通了CodeWarrior编程后,你可以试试在其他平台上使用CodeWarrior。本文中讨论过的大部分内容都可以应用到开发Mac应用程序中。 CodeWarrior可以自动地检查代码中的明显错误,它通过一种集成的调试器和编辑器来扫描你的代码,以找到并减少明显的错误,然后编译并链接程序以便计算机可以理解并执行你的程序。你所使用过的每个应用程序都通过了使用象CodeWorrior这样的开发工具进行编码、编译、编辑、链接和调试的过程。目前你在我们的指引下,自己也可以去做这些工作了。你可以使用CodeWarrior来编写你可以想象得到的任何一种类型的程序。如果你是一种初学者,你可以选择编写一种应用程序(例如一种可执行程序),例如象微软公司的文本编辑器WordPad这样的应用程序。应用程序也许是最容易编写的程序了,而那些庞大的商业软件,例如象Adobe Photoshop,Microsoft Word以及CodeWarrior软件都是极其复杂的。其他类型的程序指的是控制面板(control panels),动态链接库(dynamic linked libraries,DLLs)和插件(plug-ins)。我们先来简朴的讨论一下这些类型的程序。在Windows中,控制面板程序是某些(一般比较小的)寄存在控制面板目录下的程序,可以在开始菜单的控制面板项中看到它们。控制面板事实上是设立系统功能的一种简朴界面,例如可以在控制面板中完毕诸如设立音量和鼠标移动速度这样某些参数。动态链接库(DLLs)提供了某些很有用的被系统和应用程序共享的函数。一般它们都是没有顾客界面的。插件(Plug-ins)有点类似于DLLs,插件也是可供其他软件使用的小程序,但插件只能被特定的软件使用。例如说,Photoshop的插件容许程序员以便地扩展Photoshop的功能,而不需要去修改它的源代码。同样的,许多Web浏览器也使用插件来增长功能,或者为了让你可以看到页面上的新的内容类型。事实上,有许多程序,涉及CodeWarrior,都使用这种插件构造。一旦你掌握了CodeWarior和你所使用的操作系统的编程接口时,你可以编写许多其他类型的程序。事实上,本课程也是你进一步学习其他编程措施的基本课程。你已经找到了一种最优秀的地方开始你的编程之旅。好,目前请坐好,放松,去吸取这门课程的精髓吧,你将踏上一条成为一种编程武士的道路!CodeWarrior入门 CodeWarrior是一种复杂的应用程序,你必须花点时间来理解它的多种各样的组件和功能。第一课将讲述CodeWarrior IDE的安装。我们将学习菜单、窗口和其他的某些方面。建议你最佳一边学习本课程,一边学习使用CodeWarrior的集成开发环境。我们从运营CodeWarrior开始,如果你按照默认方式安装的CodeWarrior软件,那么在Windows的桌面上将会有一种该软件的快捷方式图标。双击该图标启动CodeWarrior的集成开发环境。如果在Windows桌面上没有这个快捷图标(这种状况常常发生),你可以在C:Program FilesMetrowerksCodeWarriorBin中找到IDE.exe文献,然后运营它。工具条启动CodeWarrior后,你将会看到,在屏幕上方的菜单下面有一种工具条。这个工具条(见图1-1)涉及了某些常用菜单项的快捷方式。在背面的章节中,你将学到如何设立这个工具条,甚至是整个IDE环境。目前,你应记住,这个工具条用于快捷使用IDE中的功能。图1-1: CodeWarrior IDE的工具条文献菜单 CodeWarrior IDE的菜单是按照原则方式设立的。其中的文献菜单用于解决和文献有关的某些操作,例如创立、打开、保存和打印等等。编辑菜单 CodeWarrior的编辑菜单和其他的Windows应用程序也很相像。其中涉及了剪切、复制和粘贴等操作,以及其他某些使得程序员可以更以便地管理源码版面布局的选项。在编辑菜单中尚有一种Preferences项,我们在这一课的背面将提到它。查看菜单查看菜单(图1-2)用于安排工具条和其他窗口在CodeWarrior环境中如何显示的选项。所谓的“其他窗口”涉及许多特殊的窗口,例如观测点(Watchpoints)窗口,体现式(Expressions)窗口,过程(Processes)窗口和全局变量(Global Variables)窗口等。图1-2:查看菜单中的工具条子菜单查找菜单查找菜单用于在单个文献或硬盘的目录中查找指定的代码。你可以使用它来以便地替代文本块或在你的代码中搜索指定的项目。虽然是在小工程中使用这个工具也非常以便。工程菜单工程菜单中的工具用于管理CodeWarrior工程。一种工程涉及构成你正在编写的程序的所有的文献,涉及头文献、源代码和库文献。工程窗口显示了所有这些文献的名称。我们将在第二课中进一步讨论这部分内容。调试菜单这是在编制程序中最常用到的工具。我们将在第五课中具体简介它的使用措施。窗口菜单用于在CodeWarrior环境管理窗口显示方式的菜单。协助菜单通过协助菜单可以到网上谋求有关CodeWarrior任何问题的在线解答。够酷的吧?理解CodeWarrior集成开发环境的设立 CodeWarrior IDE提供了许多设立以便让你定制你的工作环境。当你选择了编辑菜单中的Preferences项时,你将会看到一种设立对话框(如图1-3)。在该对话框中,有控制CodeWarrior编辑器、调试器和其他许多功能的界面和行为的选项。在这一节中,我们将学习这些设立的使用。图1-3:设立对话框你可以在自己的CodeWarrior中试试上述这些设立项。你可以先点击问号标志,然后点击你感爱好的项目,就可以得到一种有关该项目的用途的简短简介,也可以从协助菜单中得到更具体的信息。通用设立 编译设立(Build Settings):选择与否在执行编译之前保存已打开的源文献,以及有多少内存被用于编译工作; IDE之外(IDE Extras):几种独立的设立。例如指定CodeWarrior与否使用一种第三方的文本编辑器由于集成的编辑器并不是很完美,这可以通过指定一种你常用的编辑器来替代它; 插件设立(Plug-In Settings):供插件开发商调试她们的插件; 隐藏文献夹(Shielded Folders):在这里指定的文献夹在工程设计期间,或执行查找和比较操作期间,将要被忽视掉。如果在你的工程级有一种巨大的“数据”文献目录,而你又不想让这些文献减少CodeWarrior的操作速度时,这个设立就很管用了; 资料树(Source Trees):用于指定CodeWarrior在编译程序时用不着的目录。编辑器设立 编辑器设立(Editor Settings):几种用于定制编辑器显示、管理文本和窗口的设立项; 字体和制表符(Fonts and Tabs):设立编辑器中的文本大小、字体、制表符和其他显示设立; 文本颜色(Text Colors):用于指定特定语言元素(例如程序的注释)在编辑窗口中的显示的颜色。调试器设立 显示设立(Display Settings):几种用于定制调试器显示的设立项; 视窗化(Windowing):设定调试器如何管理它的窗口(例如隐藏所有打开的编辑器窗口); 全局设立(Global Settings):几种用于定制调试器在全局层次如何工作的设立。例如当一种涉及了程序调试信息的文献被打开时,与否启动这个程序; 远程连接(Remote Connections):容许通过TCP/IP进行远程调试。这样,你就可以在地球的另一边调试你的软件了; Java设立/Java调试(Java Settings/Java Debugging):容许你设立特定的Java编程语言选项。本课程不波及这部分内容。RAD工具 Layout编辑器:几种用于在CodeWarrior中定制迅速应用程序开发工具的使用的设立。正如你所见到的,CodeWarrior有许多设立项和选项。设立完后点击“Save”按钮保存你所作的修改,点击“Close”按钮将忽视你所作的所有修改。在进入下一节课之前,多练习几次。最后请确认“默认的文本文献格式(Default Text File Format)”(在编辑器设立面板中)保持为DOS设立。(待续)附原文:Lesson 1: Getting to Know CodeWarriorWhat Will CodeWarrior Do for Me?It can be frustrating to use other peoples applications when you know you can make something better. But it can also be frustrating when you have a zillion lines of code and cant find the one typo thats making the whole application go kablooey - not to mention getting it all compiled and linked and so on.This is why you are here. And this is why CodeWarrior was created.For now, well focus on writing programs in CodeWarrior using the C or C+ programming languages. This course assumes that youre pretty comfortable using at least one of these languages. CodeWarrior also supports Java development, but that will be covered in a separate class. This course concerns itself with Windows platform development. Once you get really good at programming with CodeWarrior, you can explore the other platforms for which tools have been designed. Much of what will be discussed here can also be applied to developing Mac applications.CodeWarrior automatically checks your code for obvious errors, helps you scan it for less obvious ones (via an integrated debugger and editor), and then compiles and links the code so that your computer can understand and execute your program. Every application that you have used has been through the coding, compiling, editing, linking, and debugging process, using tools like CodeWarrior. Now you can do it too! But we still have to teach you how.Using CodeWarrior, you can write just about any type of program you can imagine. If you are a beginner, you may choose to write an application (also known as an executable) as your first program. You might choose to create something as basic as WordPad, Microsofts text editor, for example.Applications are probably the simplest type of program to write, though large commercial ones like Adobe Photoshop, Microsoft Word and even CodeWarrior itself are quite complex. Other program types include control panels, dynamic linked libraries (DLLs), and plug-ins. Lets talk about these types for a minute.Under Windows, control panels are those (usually small) programs that are stored in your Control Panels directory and visible in the Control Panel section on the Start menu. The control panel itself is simply an interface to a system-wide feature, like setting the sound volume or the mouses motion speed, for example.DLLs supply useful functions that are shared by the operating system and applications. They typically dont have a user interfacePlug-ins are similar to DLLs in that they provide small pieces of code that are used by other software. However, a single program typically uses this code. For example, Photoshop plug-ins allow programmers to easily extend the capabilities of the Photoshop application without having access to its source code. Likewise, many Web browsers use plug-ins that add extra features to the application or allow you to manipulate new content types on the Web. Many programs, including CodeWarrior, make use of this plug-in architecture.There are plenty of other types of programs you can write once you master CodeWarrior and the programming interfaces for your operating system. In fact, once you complete this course, you can take other courses in which you will learn more in-depth methods of programming your computer. Youve chosen an excellent place to begin your journey, however. So sit back, relax, and absorb the lessons in this course, and youll be well on your way to becoming a CodeWarrior!An Introduction to the CodeWarrior ApplicationCodeWarrior is a complex application. If you really want to benefit from all of its features, you should take this time to get to know its various components and the capabilities that will be available to you. This first lesson will give you a basic overview of how the CodeWarrior IDE is set up. (That acronym gets thrown around a lot, and its short forIntegrated Development Environment.) Well take a look at menus, windows, and other aspects of the program. Follow along with the CodeWarrior IDE while you read through these lessons. Start by launching the IDE application. If you followed the defaults for the CodeWarrior software installation, there will be an icon that represents a shortcut to the program. Double-click on it to start the IDE. If the shortcut icon is absent (these things happen), you can typically find the program at C:Program FilesMetrowerksCodeWarriorBinIDE.exe.ToolbarWhen you launch the CodeWarrior IDE, youll notice a toolbar attached to the menu at the top of your screen. This toolbar (Figure 1-1) contains buttons that are shortcuts to frequently used menu items. Youll learn how to customize this toolbar - and even the entire IDE - in a later lesson. For now, notice that this toolbar can be used to quickly access features within the IDE.Figure 1-1: The CodeWarrior IDE toolbar.File MenuThe menus in the CodeWarrior IDE are set up in a relatively standard manner. The File menu contains choices that manage the care and feeding of files. It has standard items that let you create, open, save, and print files.Edit MenuThe Edit menu will also seem familiar if you use other Windows applications. Youll find commands that cut, copy, and paste text, as well as a few other options to help programmers more easily manage source code layout. There is also a Preferences item in the Edit menu that well discuss later in this lesson.View MenuThe View menu (Figure 1-2) gives you options to manage which toolbars and other windows are displayed in the CodeWarrior environment. Some of these windows include various specialty windows, such as the Watchpoints window, Expressions window, Processes window, and Global Variables window.Figure 1-2: The Toolbar submenu of the View Menu.Search MenuThe Search menus commands allow you to locate source code within a single file, or within the directories of your hard disk. You can also easily replace large blocks of text or search your source code for references to other source code. These tools can be very handy, even for small projects.Project MenuTools in the Project menu allow you to manage CodeWarrior projects. A project includes all of the files that make up a program you are writing, including its headers, source code, and libraries. The Project window serves as a container for these files. Well discuss this in more depth in Lesson 2.Debug MenuWhen your source code doesnt do exactly what you want it to (or your computer crashes when you run your program), youll develop a close relationship with the items on the Debug menu. Well discuss debugging in Lesson 5.Window MenuThe Window menu gives you the basic options to manage cascading and tiling windows in the CodeWarrior environment.Help MenuLastly, use the Help menu to get online help with just about any item in CodeWarrior. Pretty cool setup, huh?Getting to Know IDE PreferencesThe CodeWarrior IDE has numerous preferences that you can use to customize your work environment. You may only want to change the text color, or you might want to get more personal, changing lots of settings. When you select Preferences from the Edit menu, you are presented with the IDE Preferences dialog box (Figure 1-3). There, youll find options that control the appearance and behavior of the CodeWarrior editor, debugger, and lots more. In this section, well take a look at these preferences.Figure 1-3: The Preferences dialog box.As each item is described below, follow along in your own copy of CodeWarrior, and check out the various options available. You can get additional help by clicking on the question mark, then the item youre interested in. Youll see a terse description of the selected items purpose. More detailed information is also available from the Help menu.The General Preferences Build Settings:Choose whether to save open-source code files before performing a build and how much memory to use while building. IDE Extras:Various settings that dont belong anywhere else. Heres where you can have CodeWarrior interoperate with a third-party text editor. The integration of editors with the IDE is often less than perfect, but this limitation may be offset by the ability to use an editor that you know and like. Plug-In Settings:Used by plug-in developers to assist in the debugging of plug-ins. Shielded Folders:Directories listed here are skipped (ignored) during project and/or find and compare operations. This can be useful if you have a large directory of data files inside your project hierarchy yet you do not want those files to slow down certain operations of CodeWarrior. Source Trees:This lets you specify directories other than the standard ones CodeWarrior searches when it builds a program.Editor Preferences Editor Settings:Various settings to customize the way the Editor displays and manages text and windows. Fonts and Tabs:Text size, font, tab, and other display settings for the Editor windows. Text Colors:Like the browser display, you choose the color in which certain language elements (such as comments) appear in the Editor window.Debugger Preferences Display Settings:Various settings to customize the display of the debugger. Windowing:How the debugger manages its windows (e.g., hiding any open editor windows). Global Settings:Various settings that customize how the debugger works on a global level, such as whether to launch a program when you open a file that contains the programs debugging information. Remote Connections:Allows debugging over TCP/IP. You can debug software on a computer on the other side of the Earth! Java Settings/Java Debugging:Allows you to set specific java programming language options, not covered in this course.RAD Tools Layout Editor:Various settings to customize the use of rapid application development tools within CodeWarrior.As you can see, there are numerous settings and options that can be set. Clicking the Save button will save any changes youve made. Clicking the Close box for the Preferences window will cause CodeWarrior to ignore any changes youve made. Go ahead and play with it a little before you proceed to the next lesson. Make sure the Default Text File Format (in the Editor Settings panel) remains set for DOS.第二课显示和定制工程和目的文献(1)Translated fromCodeWarriorU.COM本课将讲述CodeWarrior操作文献的方式以及简介它的工程(Project)窗口。什么是工程文献为了使用CodeWarrior来创立一种应用程序,你必须创立许多文献来构成一种工程(Project)。该工程的设立和所有这些文献的指针都被寄存在一种工程文献中。这些设立涉及编译和链接设立、源文献、库文献以及它们之间用于产生最后程序的互相关系。你可以将这个工程文献看作该工程的大脑:它保存了所有文献互相依存的关系并懂得如何将它们组合成为一种可用的应用程序。工程窗口依次显示了这些有关你的程序和该程序所涉及的文献的信息,并容许你只需轻松点击就可以修改这个工程。图2-1显示了工程窗口的外观。图2-1:显示工程信息的工程窗口(图示为空的状况)大多数构成你的程序的文献都是原始的文本文献。这些文献涉及了你在CodeWarrior的编辑器中键入的源代码。在某些状况下,你还将使用某些预编译的源码和头文献。在进行数学运算和I/O操作时,你还要使用到某些库文献,例如Metrowerks原则库(Metrowerks Standard Library,MSL)一般,你都是使用C或C+来编写源代码,但通过给CodewWarrior的集成开发环境加装相应的插件(plug-in),你也可以在CodeWarrior中使用其他语言来进行编程。别忘了,CodeWarrior可是一种可扩展的集成开发环境。通过给它安装某些插件,你就可以扩展它的功能。例如说,加入有人开发了一种新的叫做Z+的编程语言,你就可觉得CodeWarrior创立一种相应的插件使之可以支持Z+语言,并且你还可以拿这个插件卖好多钱,让所有使用CodeWarrior编程的人都使上Z+语言。那该多好!:)目前你懂得了CodeWarrior是如何使用文献的了。下面我们来具体地学习有关工程窗口的知识。工程窗口当你启动CodeWarrior并打开或创立一种工程时,工程窗口就会显示出来。该窗口用于管理整个工程的所有文献以及这个工程将要产生的目的(targets)文献。一种工程涉及了足够的信息来编译一种或多种目的文献。所谓的目的(target)文献就是当你编译程序时,由CodeWariior创立出来的(一般是)一种应用程序或库文献。某些程序可以编译产生多种目的文献。例如,你可以编写一种程序来创立一种DLL和一种调用该DLL的主应用程序。在CodeWarrior的工程中,你可以定义一种目的来产生DLL,定义另一种目的来产生应用程序。通过这种方式,你的工程只需编译一次就可产生所有需要的目的文献或片断。图2-2显示了“Hello World”程序的工程窗口。图2-2:Hello World程序的工程窗口(其中显示了所有涉及于该程序中或用于编译该程序的文献)你可以看到,在这个工程窗口中的确涉及了某些项目。在窗口的顶端有三个标签(tab)页:文献标签(如图2-2显示)、链接顺序标签页和目的文献标签页(后两个标签页将在后续课程中讲述)。在这几种标签页的上方,有一种用于选择要编译的目的文献的下拉菜单。在本例中,我们选择的是Hello World工程的调试版本。在下拉菜单的右边有几种图标,它们的存在容许你不必使用菜单命令就可以以便地编译、链接和运营这个工程。注意:在某些版本的CodeWarrior中,链接标签被称为段(segments)标签。有人也许在某些X86的解决器上编程时使用的是分段(segmented)代码。但使用Windows版的CodeWarrior工具时就不是这样,这是产生的X86代码使用的是扁平的(flat),或者叫做非分段的(unsegmented)内存空间。顾名思义,文献标签页列出了在工程中所有也许用到的文献。你可以通过创立某些组(用文献夹图标表达)来分门别类地管理这些文献,并可以协助你以便地理解哪些文献将被使用。在本例中,我们将C程序(以.c为后缀名的文献)全都放到一种叫做Source的组中,同步将库文献放到另一种组中,以便整洁明了地管理这些文献。在Sources组中有一种main.c文献。由于我们还没有编译这个工程,因此在每个文献相应的Code和Data栏中显示数字的都是零。一旦我们编译了这个工程,这些数字就将显示出来,表达源码转换为机器代码后实际的代码量和数据量。可是,库文献ANSICX86.LIB和MWCRTL.LIB背面显示的是n/a。这表达索虽然这些文献被显示在这里,但是它们并不是Hello World目的文献的一部分。这两个文献是用于不可调试(non-debugging)开发的,而本例不是这种状况。如果我们从菜单中修改本例的目的文献为Release(发布)版本时,这两个文献就用得上了。这时这些文献背面的Code和Data栏目就会显示相应的数值。注意:在Data和Code栏右端的Target栏目中的小子弹头也是用来表达该文献与否被目前编译生成的目的文献使用到。再往右边去,是Debug栏(用一种绿色的小虫子表达),它是用于告诉你相应的文献在编译时与否要产生调试信息。我们将在第五课中具体论述这部分内容。最后,我们来看看在每一行最右端的弹出菜单,它是用于打开文献、更新源码、打开涉及的头文献等等操作的快捷方式,具体是什么才作,要看它所代表的项目的类型而定。目前让我们来编译这个Hello World工程并看看编译后的工程窗口的状况。我们从Project菜单中选择Make命令来编译该工程。这将更新所有需要编译的文献并产生相应的输出文献在本例中是Hello World这个应用程序。图2-3:编译工程后的工程窗口的显示状况从图2-3中我们可以看到,工程窗口发生了某些变化。Code和Data栏都显示了目前工程中相应项的相应的数字。如果你打算看看编译前后寄存这些文献的目录的话,你会发现编译后在该目录下产生了某些新的文献,如图2-4所示。图2-4:编译后将在工程目录中产生某些新的文献在本例中,编译工程后在工程目录中产生了一种新的文献。这就是X86目的文献输出生成一种叫做Hello World x86的应用程序。其他某些始终存在于这个目录中的文献是:.mcp文献工程文献我省,以及.c源文献涉及了应用程序源码的文献。Hello World Data目录中还涉及了由CodwWarrior生成的多种各样的支持文献。目前你还不必去关怀这些文献。如果你正在编译目的文献的调试版本,你会看到更多的文献被产生出来,这些文献中也许涉及着符号(symbolic)调试信息。集成开发环境的调试器使用这些符号信息来记录在高层次源码中的操作轨迹。我们将在第五课中具体讲述这方面内容。目前你已经理解了这些文献是如何结合在一起被编译生成一种目的文献的。让我们来运营这个目的文献并看看它的运营成果是什么样。你双击Hello World x86应用程序,就会有如图2-5所示的成果显示出来。图2-5: Hello World应用程序的运营成果你来试试看总有一天,你自己也能编写出象Hello World这样布满激情和意义深远的程序来。这是完全有也许的。只要你有决心努力工作,学完本课你就可以编写这个程序了。下面我们给出该程序的源代码:#includevoid main(void) int c; printf(Hello World on Windows!n); c = getchar();就这样多!你没想到会这样简朴吧?你可以试试看将Hello World on Windows!这句话换成一句别的什么内容。要不了多久,你就能自己编写某些不仅能显示文本并且还能执行你指定的其他任务的应用程序了。但在此之前,你还需要学习第四课,有关链接的知识。有关getchar()函数那些有经验的C程序员也许会问,上述代码中使用的 字符输入函数getchar()用在这里是什么意思。一般地,当一种应用程序执行完毕后,它就会终结,然后操作系统就会立即清除该应用程序输出。这样,当上述应用程序显示完“Hello World on Windows!”后,为了避免系统立即将该程序地输出清除,我们在程序中添加了一种getchar()函数,使程序在此处暂停,直到有键盘输入时整个程序会终结。这样我们才有足够的时间来看清晰该程序的输出。这是一种正常的操作,而不是一种bug。事实上,CodeWarrior也提供了一种合用于此处的库函数,这个库函数中的C控制台I/O函数步不仅可以在程序显示完毕后锁定应用程序,并且还可以让你将输出的文本信息存储到一种文献中去。第一部分第二部分附原文:Displaying and Customizing Projects and TargetsIn this section of the lesson, Ill introduce you to the way CodeWarrior handles files and give you a tour of the Project window.Understanding the Project FileTo create programs in CodeWarrior, you will use a number of files that work together to form a project. A projects settings and pointers to other files are stored within aproject file.These settings include compiler and linker options, source files, libraries, and information about how they interact with one another to build the final product - your program. For now, just think of the project file as the brain of your project: it keeps track of everything that is going on and knows how to combine files and settings into a working application program. The Project window in turn displays this information about your program and its files and allows you to modify the project by just pointing and clicking. Figure 2-1 shows the Project window.Figure 2-1: Each project you create appears in the Project window. This one is empty.Most of the files that make up your program are ordinary text files. These files contain your source code. Youll create them by typing the source code into the CodeWarrior editor. In some cases, you will also use prebuilt source code and header files. There are also library files, such as the Metrowerks Standard Library (MSL) which provides valuable functions for math calculations and I/O operations.Your source code will usually be
展开阅读全文
相关资源
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 考试试卷


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!