Have you ever wandered of compiling and running C C++ codes on an android device? it is possible but it needs lots of tedious and long process.You can achieve this by downloading a c/c++ compiles app , but you’ll have to pay for it , in addition it requires 50mb additional download and disk space.
For this problem I’ve a simple and unique solution.Here below is a simple yet un discovered procedure, required for running c/c++ compiler on any android device ,it includes use of a DOS emulator.Yes a DoS emulator will allow you to manipulate all standard DOS commands in an Android Device and it works like a charm.For this purpose you will require ” aDOSBOX ” application to be installed in your phone , you can download it from Google Play Store or i’ve also uploaded it , so now we can move further for the simple steps for making Turbo C compiler run.This DosBox works identically as that of PC ,which we use to run Turbo C on 64 bit system and to run old DOS games.
Require downloads : aDosBox , download from Google Play or click here.
1.Copy TC (Turbo C) folder in to root of sdcard.
2. install aDosBox and open it
3. In it you’ll find something like :
Z:\mount c /sdcard Drive C is mounted as local directory /sdcard Z:\c: C:\
it indicate that now you sdcard will act as c drive for DosBox.
4.In DosBox ,click on options and open on screen keyboard.
5.In it type :
so now bin will become your working directory.
it’ll look like..
and see the magic happens.Turbo c is working in your Android tab/phone .
It is recommended to have a Hdpi scene and better to have a tablet for convenience. You can compile and run your c-c++ program as well you can write and edit it also,touch pad works as mouse , single tap indicate left click , double tap indicates right click , and ofcourse you can change those settings in DOSBOX anytime.Its handy stuff to carry c/c++ compiler in collages for your project work , else its fun ..
You can compile and run programs in similar fashion in which u do in pc , same options just change in interface.
Thanks for reading …