Beruflich Dokumente
Kultur Dokumente
C:\Windows> cd\
This will change the directory back to the main/root drive which is C:
C:\> cd turboc
This will open the folder turboC
C:\TurboC> cd bin
This will open the folder BIN from folder turboC
C:\TurboC\bin> dir/w
This will display the list of files inside the folder BIN. Look for TC.exe to open it later.
C:\TurboC\bin> TC
This will open the editor window of Turbo C where you can type your program/code.
The C++ IDE will appear. Now, you are ready to create programs in Turbo C.
Change the directory and locate your folder by pressing ALT+F and choose Change Directory.
Read through the following sections. Do the examples at the end of each section Look back at a previous
sections for help. Read the screen. Any time it says press any key, press a key (like the spacebar) after
reading the screen.
A. Entering your program
The enter key is represented by . Type the following example.
/* Sample Program */
#include <stdio.h>
#include <conio.h>
void main()
{
int sum;
printf("START\n");
sum = 3 + 7;
printf("THE SUM IS %d \n" , sum);
printf("DONE\n");
getch();
}
If you make a mistake backspace to erase it, and retype the characters
B. Saving program
To save a file,