Development

How to Install Turbo C++ on Windows

Captain Salem 4 min read

Turbo C++ is an Integrated Development Environment (IDE) and compiler suite for the C++ programming language. Turbo C++ was initially developed by Borland and released in 1990.

It was mainly designed for the MS-DOS operating system, allowing developers to write C++ applications in a console-like environment.

However, you may encounter an instance where you need to install and use the Turbo C++ environment on the latest Windows versions.

This tutorial will show you how to quickly install and run the Turbo C++ compiler on the latest Windows versions, such as Windows 7, 8, 8.1, 10, and 11.

Components of Turbo C++

Turbo C++ consists of several components:

  1. The Integrated Development Environment (IDE): This graphical user interface allows you to write, edit, compile, and debug code. The IDE includes code highlighting, auto-completion, and project management tools.
  2. The C++ Compiler: The compiler is responsible for translating the source code into executable machine code that can be run on a computer. The Turbo C++ compiler uses the C++ language standard and includes support for the Standard Template Library (STL).
  3. The Turbo Debugger: The debugger allows us to test and debug our code. It allows us to review their code line-by-line and inspect variables and memory contents.

How it Works

Turbo C++ works by taking the source code written by the developer and compiling it into executable machine code. The compiler uses several different stages to accomplish this task.

  1. Lexical Analysis: The compiler first analyzes the source code to identify the individual tokens that make up the program. These tokens include keywords, identifiers, operators, and literals.
  2. Syntax Analysis: Once the tokens have been identified, the compiler checks the program’s syntax to ensure that it conforms to the rules of the C++ language. This involves checking that statements are properly structured, that all brackets are balanced, and that variable types are used correctly.
  3. Semantic Analysis: After the syntax has been checked, the compiler performs a semantic program analysis. This involves checking that all variables have been declared, that functions have been defined correctly, and that there are no type mismatches.
  4. Code Generation: Once the semantic analysis is complete, the compiler generates the executable machine code that can be run on a computer. This involves translating the C++ code into a low-level language that the computer’s processor can understand.

How to Install Turbo C++ on Windows

Let us now dive into the steps we can use to install Turbo C++ on Windows.

Step 1 - Download Turbo C++

The first step is to download the Turbo C++ installer.

Open your browser and head over to the resource below:

https://github.com/vineetchoudhary/TurboCPP/releases/tag/v3.2

Before extracting the downloaded installer, ensure you do not have a previous installation of the Turbo C++ compiler.

Step 2 - Extract the Zip Archive

Once the download is complete, extract the archive to any desired location.

image-20230412154512146

Step 3 - Run the Installer

In the extracted directory, open the setup.exe file. This will launch the installer Wizard allowing you to install Turbo C++ on your machine.

image-20230412154631870
image-20230412154631870

Accept the Licenses and click Next.

image-20230412154718484
image-20230412154718484

Finally, click Install to proceed with the install.

image-20230412154841295
image-20230412154841295

Launch Turbo C++

Once the installation is complete, you can select the Launch the Program option from the installer page or click on the Turbo C++ icon from the Desktop.

image-20230412155349957
image-20230412155349957

To launch the Turbo C++ in DOS mode and full screen, select the Start Turbo C++ on the start window.

Hello World Program in Turbo C++

To create a simple program in Turbo C++, select New Source File from the Main Window.

This will prompt you to give the name to your source file. Choose the target directory, provide a name for your source file and click save.

image-20230412155748695
image-20230412155748695

By default, the program will launch in Full Screen mode.

If you do not want full-screen mode, uncheck the “Full-screen mode” check box on the main window.

Edit the source code and add the hello world program as:

#include <iostream.h>

int main()
{
    cout << "Hello World!" << endl;
    return 0;
}
image-20230412160051118
image-20230412160051118

Press F2 or Head over to File -> Save from the top bar to save the file.

image-20230412160158448
image-20230412160158448

Finally, to compile the program, press F9.

Ending

This fundamental tutorial covered installing and setting up Turbo C++ on the latest Windows versions without using compatibility mode.

Share
Comments
More from Cloudenv

Cloudenv

Developer Tips, Tricks and Tutorials.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Cloudenv.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.