Creating a Project with C++ Builder

Preview:

DESCRIPTION

Creating a Project with C++ Builder. And with Quincy. Starting a New Project. Choose F ile, then N ew Note the options which appear Choose the Console Wizard. Console Wizard. Take the default options on the Console Wizard Click on F inish. Adapting the Window. Save A s this project - PowerPoint PPT Presentation

Citation preview

1

Creating a Project with C++ Builder

And with Quincy

2

Starting a New Project

Choose File, then New

Note the options which appear

Choose the Console Wizard

3

Console Wizard

Take the default options on the Console Wizard

Click on Finish

4

Adapting the Window

Save As this project to the desired

directorywith the desired

name

5

Adding Files to the Project

PulldownProject

Add to projectSpecify file

6

Note Changes to Edit Windows

New tab with that file

References in code of main program

7

Include File

Specify #include "xxx.h" for project

Also need #include <conio.h> for getch() to pause at end of output

8

Running the Project

Choose the Run option (button, pulldown menu, or F9)

9

Output Window

Project runs in an output window

Properties ofoutput windowcan be adjusted

10

Accessing Output

Output window cannot be printed directly

Instead, Right click top boarder Select Mark Block off

with mouse Then select

Copy

Place text ina text editorfor printing

11

Using Quincy

It is a good idea to create a new directory to place all your .h and .cpp files for the project

12

Using Quincy

From the Quincy heading click on File and New

Choose Project

13

Creating a Project

Specify …The name of the .exe file and …The directory where you will have the .h

and .cpp filesUse the default

Console option

14

Adding Files to the ProjectThe project window appears

Specify files to be added to the window the .cpp class files the .cpp with main()

15

Working with the Project

The files you specify are listed in the project window

Double click on the file name to load the file into the editor

16

Running the Program

Click on the Run icon or …

Press the F9 key or …

Use the Debug pull down menu and choose Run

If the files need to be recompiled or rebuilt, Quincy will do so or ask to do so

Recommended