Friday, 6 March 2026

Module 1. Lesson 2. Setting Up Environment

Introduction to Lesson 2

A carpenter needs his tools to build any craft for the satisfaction of his clients. The same for programmers who need to set up their tools to effectively write and code C programs. In this lesson, the students will be taught how to set up a Turbo C compiler that runs on their workstations and/or laptops.


Learning Outcomes

At the end of the lesson, 

  1. The students must be equipped of setting up the development environment of writing and executing C programs.


Lesson 2: Read and Learn

Setting Up Environment

The visual guide will walk you through how to properly set up your Turbo C integrated development environment. 


  1. Access this link https://bit.ly/3OjMoxY for the Turbo C compiler

  2. Download TC.zip

  1. Extract the downloaded file to folder TC.

  1. Transfer the TC folder to your drive C.

  1. Open the TC folder, then double-click TC_Launcher to open Turbo C compiler.

 


Walkthrough of the Turbo C Environment 

  1. File Menu

  2. Editor status line and edit window

  3. Compiler message window

  4. “Hot key” quick reference line


Main Menu

The main menu directs Turbo C to take the action specified in the list of menus. By pressing the Alt key and the first letter of the menu, it can be activated or used. To open the File menu, for instance, use Alt + F. 


Basic menu of Turbo C

  1. File – used to “load and save files, handles directories, invokes DOS and exits Turbo C” 

  2. Run – used to “compile (check for errors), links, and runs the program currently loaded in the environment”

  3. Compile – used to compile the environment's current program.


Submenus under File menu

  1. Load – allows the user to choose a file that will be loaded or opened in the editor.

  2. Pick – allows the user to choose a file based on the nine most recently opened or modified files.

  3. New – allows the user to open new programs or modify new files.

  4. Save – saved or "saves the file that is currently open in the editor"

  5. Write to – to "save a file using a different filename" for the user.

  6. Directory – "displays the contents of the current working directory"

  7. Change dir – permits the user to alter the default path or directory by specifying the defined path.

  8. OS Shell – allows the user to "execute DOS commands" and "loads the DOS command processor"

  9. Quit – enables the user to terminate or stop Turbo C


Editor Status Line and Edit Window

You type your program on the editor's status line and edit window, where you can also see the current line and column of the text you've typed. The word insert vanishes when you attempt to hit the Alt-I or Insert key, indicating that the window is in overwrite mode. When you press "insert" once more and go back to regular mode, you'll see the word "insert" appear once again.


Message Window

The message window is situated below the Hotkeys and the centre of the edit window. The various compiler or linker messages are displayed using it.


Hot Keys

The Hotkeys button is at the bottom of the Turbo C splash screen. It alludes to a menu selection shortcut or shorthand. There are two sets of hotkeys: "the standard ones and the alternate set." To use the standard hotkeys, press the corresponding key. Press F1, for instance, to activate assistance. To use alternative hotkeys, however, briefly press the Alt key and the relevant Function key.


Quiz #2. 

  1. Filename extension for c programs.

  2. To load files in the Turbo C compiler.

  3. To compile c programs.

  4. To execute c programs.

  5. To edit code in c programs.

Activity 2.

  1. Submit screenshots of setting up the Turbo C compiler in your own workstations.

0 comments:

Post a Comment

If possible, leave a positive comment. No hate speech or elicit comments. Thank you.