Hello guy's we are back with another interesting stuff, today we are going to write, compile and run our C/C++ code in android!
Most of the dedicated & interested programmer's love to code irrespective of place and time.
while(interestInProgramming() && crazeForProgramming() == true)
{
writeCodeInAndroid();
amazeYourFriends();
}
So, today we are going to go through a simple procedure to make C/C++ run in our android phone, which is very simple believe me.
Requirements:
1. Android phone,
2. Turbo C++,
3. AnDosBox (Link to download Turbo C++ and AnDosBox)
If you are used to DosBox in PC than you are already almost done.
So, let's start already:
1. Download the above given rar file and extract it into your pc. It will be containing a folder with name TC and an apk as AnDosBox.
2. Install the apk file and move the TC folder in your andorid phone's SD card. Notice that you dont move TC folder in any other folder, for reference below is the image of my SD card:
3. Now, after installing AnDosBox, start the app.
4. To open keyboard tap the specified area of your phone mentioned below in the image you will be presented with hidden options, select keyboard another alternative is press options soft key of your phone and select keyboard:
(If you still don't get the options, try tapping the bottom-left corner of your screen you will surely get it)
5. Assuming that you got the keyboard, type "CD TC/Bin" and hit enter you should be with the following screen:
6. Simply type "tc" and hit enter.
Now, Turbo C should be running on your android phone.Write, Compile & Run your C/C++ code anytime and anywhere you like.
Cheers, Next time we will see how to run JAVA in android phone. Stay tuned & happy coding :D
0 comments :