ВУЗ:
Составители:
Рубрика:
98
92 The Borland IDE has a built-in editor. 93 Click the New File icon and select
the Source File tab to bring it up. 94 This is how you enter single files. 95 To work
with multiple files and projects, click the New icon again and choose Console Appli-
cation in the Project tab. 96 Click OK to continue. 97 If you select the wizard, it will
create framework for your main program; if you leave it unchecked, you will get a
blank source window where you can enter your code.
98 Save the project and all related files in a separate directory. 99 The project
file has the extension .cbx, while the C++ source files have an extension .cpp. 100 It
is worthy to note that the editor appends the extension .cpp automatically for the
source files when you save the file. 101To save the file you are working on, click the
Save Current File icon.
102 Compiling with the Borland C++BuilderX Compiler
103 To compile and link a project or an individual source file, click the Make
Project icon. 104 Some compilers require two separate steps: first a compile, and then
a link. 105 Most integrated environments, including this one, however, do both
whenever you tell them to compile. 106 To run a program from the IDE, click the
Run Project icon. 107 To debug a program, click the Debug Project icon.
108 When running a program under the debugger, your screen will look some-
thing like Figure 1.2. In this case, I've set a breakpoint on line 7 and the code has exe-
cuted to that point.
92 The Borland IDE has a built-in editor. 93 Click the New File icon and select the Source File tab to bring it up. 94 This is how you enter single files. 95 To work with multiple files and projects, click the New icon again and choose Console Appli- cation in the Project tab. 96 Click OK to continue. 97 If you select the wizard, it will create framework for your main program; if you leave it unchecked, you will get a blank source window where you can enter your code. 98 Save the project and all related files in a separate directory. 99 The project file has the extension .cbx, while the C++ source files have an extension .cpp. 100 It is worthy to note that the editor appends the extension .cpp automatically for the source files when you save the file. 101To save the file you are working on, click the Save Current File icon. 102 Compiling with the Borland C++BuilderX Compiler 103 To compile and link a project or an individual source file, click the Make Project icon. 104 Some compilers require two separate steps: first a compile, and then a link. 105 Most integrated environments, including this one, however, do both whenever you tell them to compile. 106 To run a program from the IDE, click the Run Project icon. 107 To debug a program, click the Debug Project icon. 108 When running a program under the debugger, your screen will look some- thing like Figure 1.2. In this case, I've set a breakpoint on line 7 and the code has exe- cuted to that point. 98
Страницы
- « первая
- ‹ предыдущая
- …
- 96
- 97
- 98
- 99
- 100
- …
- следующая ›
- последняя »