Turbo C or Turbo C++ is a MS DOS based IDE for C and C++ languages. MS DOS might be outdated, but this IDE is still in use. Most 0f the schools and colleges in India still teach their students on Turbo C. It is considered to be an easy to use and understand IDE since it is based on Dos. And literally speaking, it is an easy thing to use and start learning programming. I was also taught my first programming language (C++) in Turbo C, and even today, 6years later, I still use Turbo C for writing my codes.
I have this habit of writing each and every code in C++ first and once that code runs successfully, then I convert it into other programming languages. Like for instance, I was building an Android Application, and for the formulas and the rules used in there, I wrote the entire code in C++ first and made sure nothing was wrong. Then, I typed it all in java for my Android Application. Well, that apart, let’s get back to the topic. I told you this short story just because IÂ wanted to tell you that I still use Turbo C, despite the fact that my Laptop runs on Windows 8. A lot of people ask me how to run Turbo C on their Laptops/ Desktops running Windows 7 or Windows 8 and I have been telling all of them how to do it. So now let’s get you aware with the method as well.
Starting from Windows Vista, Microsoft stopped supporting the Command Prompt applications (Dos applications) to run in full screen mode. But in Windows 7 and Windows 8, they stopped letting you even run the application. To overcome this problem, a group of 4 developers got together and developed an emulator they named DOSBox. This emulator allows you to run all DOS applications on your newer version of Windows, even in full screen. So let’s get started setting it up on your laptop.
Installing DOSBox and Turbo C++
- Head over to the DOSBox Website and download DOSBox for your version of Windows.
- After the download completes, run the setup and install DOSBox on your computer. Some Windows 8 installations might say that this application is not compatible with Windows 8, but click on Install anyways because it is completely compatible with Windows 8.
- Now, head over to the download page to get Turbo C++ by clicking here and download Turbo C++ to your computer.
- After the download completes, extract all the contents of the ZIP file into “C:\TC\“. It should look like this after extraction.
- Now open up DOSBox from the shortcut on your desktop or from the Start Menu. You should be shown with the following screen.
- Type in the following lines one by one and hit Enter/Return after every line.
mount c: c:\
c:
cd tc
install - Now you should be presented with the setup for Tubro C++. Press Enter to Continue and enter the Drive Source Letter as C and press enter. Leave the next setting as it is and press enter.
- Scroll down to Start Installation using arrow keys and press enter.
- Now just wait for the installation to finish. After the installation completes, you will be back on the main DOSBox screen. At this stage, close DOSBox by typing in “exit” or by clicking the cross (X) button on the top.
TIP : If you want to run DOSBox in Full Screen mode, just press “ALT+ ENTER (RETURN KEY)” at any point of time. You can press these keys to get out of the Full Screen Mode as well.
Starting Up Turbo C++
After you have installed Turbo C++ and DOSBox successfully, you need to start Turbo C++. I am going to tell you a shortcut to make DOSBox run Turbo C++ every time you start it. To do this, just follow these steps.
- In the start menu, find the folder that DOSBox just created. Then, click on DOSBox Options to open up a notepad file.
- This notepad file defines all the configuration and settings for DOSBox. Scroll down to the very end until you reach to the last line.
- After the last line, enter the following lines of code and save the Notepad file.
mount c: c:\
c:
cd tc\bin
tc - After you save the notepad file, close it and run DOSBox as you had run the first time. This time when you run DOSBox, you should be shown with the following screen. This is your Turbo C++.
I hope my article helped you install Turbo C++ on your computer. If this article helped you, consider sharing it with others, which might help them too. Stay subscribed to Slash Coding via RSS Feeds, Facebook Page or Twitter Account. Feel free to comment about any doubt down below!
Update: 14 December, 2013
As Yogendra Singh has pointed out that there is an already configured version of DosBox available at the Turbo C 8 website, it just does the entire process in one step. Head over to the official Turbo C 8 website to know more.
Yogendra Singh says
Thanks for giving full procedure….for those who facing error during configure dosbox must try pre configured dos box for turbo c++ from http://www.turboc8.com for Free.
Aneesh Bhatnagar says
Thank you for sharing this pre-configured version with everyone! 🙂
Sadia Siddiqui says
Thank you so much! Ive been trying for so long but it wasnt working for me. You’ve made it all so simple:)
sampada loharkar says
very usefull.. thanx a lot..
shailesh sharma says
Thanx bro. great: clearly written and accurate instructions. got through the process in 1st go.
XYX says
I AM NOT ABLE TO GET IN TO USERSCREEN
Aneesh Bhatnagar says
I don’t get what you’re trying to say. Can you elaborate please?
sowmiya says
I think he couldn’t able to view his output on user screen /output screen
sowmiya says
Thanks for your procedures … its work for me . But I couldn’t run the c program if I run it its closed … wat should I do ?
Aneesh Bhatnagar says
I think you are using the shortcut ctrl + F9 to run the programs.. This is the shortcut to close DosBox.. So I suggest you to use this shortcut instead alt+R and then choose run (press enter).
I hope this fixes your problem! 🙂
sowmiya says
Thanks for your immediate response.. yeah its fixed 🙂 now its run
Thanks sir
Aneesh Bhatnagar says
I’m glad I could help you! 🙂
Varun K says
when i start installation like the way u told in step 8, i get an error saying”too many subdirectories” and installation is aborted. What should i do?
Aneesh Bhatnagar says
Hey Varun
Where have you placed the TC files? You did that exactly like I’ve done it?
Varun K says
yes same directory just in c disk. I have not placed tc folder in any other folder like program files folder,etc.!
Aneesh Bhatnagar says
Well.. There shouldn’t be any problem then.. Try following that procedure again.
Or you can download the integrated Turbo c with dosbox from the link in the post
shruti says
short and simple!
Where is the “like” button here ??!
Thank you.
Aneesh Bhatnagar says
I’m glad this article helped you! 🙂
abdul qadir says
works just fine
thanx alot 🙂
ganesh singh bisht says
thanks sir it’s soo goood.
mamta rajput says
i don’t understand what are u say to this web page ?
so pls next time give a video for installing c++.
Aneesh Bhatnagar says
Hey Mamta
I don’t have a video tutorial, unfortunately. Can you let me know where you got stuck? Maybe I can help you out!
Prashant says
i can’t change the directory to tc\bin
Ankith B says
sir,after extracting the winzip contents,it will not be in the form as you shown.can u pls tell me where i went wrong
Ankith B says
after the mount process when i type cd tc,it says “unable to change to :tc.”
Aneesh Bhatnagar says
Hey Ankith
Have you placed the contents of the unzipped files like I’ve shown in the tutorial?
ksairam says
I want to install turbo c in windows 8,phone plz tell me d way to instal
Aneesh Bhatnagar says
Hey Ksairam,
I’m sorry but I don’t know a way to install it on Windows Phone. I won’t be able to help you in this regard.
aastha says
Hey thank you for this turoria.. i could install turbo c. Only now when i run my program, i cannot view my output window. There are no errors and i pressed ctrl+r then enter to run it. Please can you fix?
gyan says
help me its saying too many subdirectories
Nandana says
wow so nice . it is very easy to install and nice detailed explantion .
Naga Srinivas says
Every thing has gone correctly as u said up to installation and it is installed too, but when i am trying to open it i could find the editor for C program.Every i opened it , it asks me to mount files every time..can u please help me….!
suraj says
sir i m not getting window after step 6
suman sharma says
sir, i have installed the dosbox but when i typed mount c: c\ and press enter then it leaves an error that mounting is not recommended.please enter a (sub) directory next time.can you please help me sir…..
Aneesh Bhatnagar says
Hey,
You can type mount c:\tc and then omit the step that needs you to change the directory to tc by using the “cd tc” command.