Write and Build hello program

          This is a step by step page which teaches how to compile a hello program using Turbo C++ . If you dodn't know how to write a program at Turbo C++,this page will teacher you fast to code a simple program.Before virw this page ,please install Turbo C++ .You can g o to the Borland web site to download free Turbo C++ compiler  


Step 1: Open the MS-DOS command prompt window

NOTE: You must close the original MS-DOS command prompt window first.


Step 2: Type tc and Press <ENTER> in any location to run the TC++ 1.01 Integrated Environment. This command can be executed from any location.

7

Step 3: Create a source file (*.c).

Step 3.1: Select New from the File menu.

8

Step 3.2: Type in following code. Note that the code is case-sensitive..

9

Step 3.3: Save the file by selecting Save from the File menu, and then enter the file name Hello.C.

10

11

Note: If you have a text editor you are familiar with, you may use it to type in the above code. It should be noted that you cannot use a word processor application for this, as you must use an application that saves in plain text, such as notepad or edit. C language program files should always be given a name ending in “.C”.

 

Step 4: Create a new project file (*.prj).

23

Step 4.1: Type the name of the project file and then click the OK button.

24

 

Step 5: Add all necessary files to the project.

gfh

Step 5.1: Select the source file and then click the Add button.

17

Step 5.2: Select the function library and then click the Add button.

18

 

Step 6: Click on “Options” and select full menus.

19

 

Step 7: Click on “Options” and select the compile menu item, then set the Code generation options.

20

Step 7.1: Change the Memory model.

21

Step 7.2: Click on “More…”, then set the Floating Point to Emulation and the Instruction Set to 80186.

22

 

Step 8: Click on “Compile” and select “Build all” to make the project.

24

25

For instructions related to the downloading and execution of programs,

Note:refer to Load your program (exe file and autoexec.bat) to controller to get how to execute .exe file on   8000 controller

 

 

 
     
     
     
     
Copyright©1983-2004 ICP DAS Co., Ltd. All Rights Reserved