How to Start Learning C Programming in Turbo C++ IDE
Download Turbo C++ IDE for your operating system., Once you have got yourself the Turbo C++ compiler, learn about the #include, printf (Printf is used to print a message onto the console) and scanf (Scanf is used to scan a message from the console...
Step-by-Step Guide
-
Step 1: Download Turbo C++ IDE for your operating system.
Turbo C++ may not work in Windows Vista and Windows
7.
You may have to run it through another program called DosBox.
Install the software DOSBox version
0.74 Create a folder,for example "Turbo" (C:\Turbo\):
Download and extract TC into the Turbo folder (c:\Turbo\):
Run the DOSBox
0.74 from the icon located on the desktop:
Type the following commands at the command prompt : mount d c:\Turbo\ Now you should get a message which says:
Drive D is mounted as a local directory c:\Turbo\ Type d: to shift to d:
Next follow the commands below: cd tc cd bin tc or tc.exe In the Turbo C++ go to Options>Directories> Change the source of TC to the source directory ( i.e. virtual D: refers to original c:\Turbo\ .
So make the path change to something like D:\TC\include and D:\TC\lib respectively ) You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:
For DOSBox versions older then
0.74 browse into program installation folder and open the dosbox.conf file in any text editor.
For version
0.73 go to Start Menu and click on “Configuration” and then “Edit Configuration“.
Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts. -
Step 2: Once you have got yourself the Turbo C++ compiler
, Congratulate yourself, you're starting to learn C programming in Turbo C++ IDE! , It is case sensitive, modular and structured., These are predefined words reserved by the language.
Each keyword has a specific function.
We cannot use keywords for any other purpose.
There are 32 keywords in C language.
Every keyword is case sensitive.
A keyword cannot be an identifier, variable or a function.
Examples of keywords : void, if, else, do. , Variables are names given to certain memory blocks where the program will store certain values.
To use a variable, the programmer will have to declare it first., Given below are the 4 most common and important data types and on the right hand side is their format-specifier. int
--> %d float
--> %f char
--> %c double
--> %f (Yes, float & double have the same format specifier) Strings are a part of char but the format specifier for strings is %s ,,, ASCII is used occasionally in C programming. ,,, Read books related to C programming.
Remember, you cannot master any language without determination and hard work. -
Step 3: learn about the #include
-
Step 4: printf (Printf is used to print a message onto the console) and scanf (Scanf is used to scan a message from the console to the memory) functions.
-
Step 5: Create a basic Hello World program and run it.
-
Step 6: Remember
-
Step 7: C is a High Level Language (HLL).
-
Step 8: Learn about keywords.
-
Step 9: Learn about variables.
-
Step 10: Datatype : These indicate the type of value represented by certain variable.
-
Step 11: Learn about Arithmetic operators
-
Step 12: logical operators
-
Step 13: increment/ decrement operators
-
Step 14: conditional operator
-
Step 15: control flow structure (if-else
-
Step 16: if statement
-
Step 17: nested if) and looping (while
-
Step 18: do-while
-
Step 19: Learn about arrays
-
Step 20: sorting.
-
Step 21: Learn about the ASCII (American Standard Code for Information Interchange).
-
Step 22: Learn about pointers.
-
Step 23: Start with basic and small programs and then move on to more complicated ones.
-
Step 24: Get enrolled with certain courses to improve your command over C programming.
Detailed Guide
Turbo C++ may not work in Windows Vista and Windows
7.
You may have to run it through another program called DosBox.
Install the software DOSBox version
0.74 Create a folder,for example "Turbo" (C:\Turbo\):
Download and extract TC into the Turbo folder (c:\Turbo\):
Run the DOSBox
0.74 from the icon located on the desktop:
Type the following commands at the command prompt : mount d c:\Turbo\ Now you should get a message which says:
Drive D is mounted as a local directory c:\Turbo\ Type d: to shift to d:
Next follow the commands below: cd tc cd bin tc or tc.exe In the Turbo C++ go to Options>Directories> Change the source of TC to the source directory ( i.e. virtual D: refers to original c:\Turbo\ .
So make the path change to something like D:\TC\include and D:\TC\lib respectively ) You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:
For DOSBox versions older then
0.74 browse into program installation folder and open the dosbox.conf file in any text editor.
For version
0.73 go to Start Menu and click on “Configuration” and then “Edit Configuration“.
Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts.
, Congratulate yourself, you're starting to learn C programming in Turbo C++ IDE! , It is case sensitive, modular and structured., These are predefined words reserved by the language.
Each keyword has a specific function.
We cannot use keywords for any other purpose.
There are 32 keywords in C language.
Every keyword is case sensitive.
A keyword cannot be an identifier, variable or a function.
Examples of keywords : void, if, else, do. , Variables are names given to certain memory blocks where the program will store certain values.
To use a variable, the programmer will have to declare it first., Given below are the 4 most common and important data types and on the right hand side is their format-specifier. int
--> %d float
--> %f char
--> %c double
--> %f (Yes, float & double have the same format specifier) Strings are a part of char but the format specifier for strings is %s ,,, ASCII is used occasionally in C programming. ,,, Read books related to C programming.
Remember, you cannot master any language without determination and hard work.
About the Author
Robert Coleman
Experienced content creator specializing in cooking guides and tutorials.
Rate This Guide
How helpful was this guide? Click to rate: