Step 1: Download TurboC and DOSBox from this link:
Download TurboC and DOSBox
Step 2: Now extract it in the root of C drive, open the folder and install DOSBox.
Step 3: Inside the folder there is another zip file named as “tc_installed“. Extract this folder into C:\TC (You should be able to see BGI, BIN, CLASSLIB and other folders in C:\TC). Create two new folders viz. TCSOURCE and TCOUTPUT inside the TC folder.
Step 4: After that click on the DOSBox shortcut that is created at the desktop.
Step 5: Write these command:
mount c c:\
(After this you will see a message that Drive C is mounted as a local directory C:\)
c: (Switch to C directory)
cd tc (Go to TC folder)
cd bin (Go to Bin folder)
tc or tc.exe (To execute Turbo C++)
Note: Every time you start DOSBox you have to write these commands to mount a drive as local Directory. But if you want to start Turbo C++ when you start DOSBOX then Go to Start Window –> Find DOSBox 0.74 Options –> Add the following lines at the end of the file and save it.
mount c c:\
Step 6: Now Turbo C++ is running and you can write your programmes. But still there is a problem with the compilation of the programme.
Ctrl+F9 is a shortcut for DOSBox to exit. On the other hand, Ctrl+F9 is for compiling a programme in the Turbo C IDE
To overcome this problem follow these steps:
(i). When you are running Turbo C++ press Ctrl+F1
(ii). Click on Shut Down
(iii). Click on Del
(iv). Click on Add
(v). Press q and then click on mod1 shown at bottom left corner (It sets Ctrl+q as a shortcut to exit from DOSBox)
(vi). Click Save and then Exit.
Now you can compile your programmes using Ctrl+F9 and use Ctrl+q to exit from DOSBox.
Note: Press Alt+Enter to make Turbo C window displayed in full screen.
Getting CAPITALS in DOSBox?
It sounds like you may have the
Hold option enabled. Assuming you have the latest version of DOSBox, try the following:
CLCK) key with your mouse (it should turn green).
mod1option, it should say
hold. This option should not have a white box next to it. If it does, click the white box so that it goes away.