How Can I Practice C++ Offline on an Android Tablet?
Asked by
MellowPine42
I've been teaching myself C++ through books, but I've reached the point where I need hands-on practice and small projects to keep progressing. I'm rarely at home and don't have a laptop, but I do have a Samsung Ultra tablet with a keyboard attachment. Since full IDEs such as Visual Studio or Android Studio don't seem to run on Android, what are my best options for writing, compiling, and running C++ projects offline?
Answers
You could also try Cxxdroid or CxStudio, which are designed for writing and compiling C++ on Android. They may be easier to start with than setting up a terminal-based toolchain, though their features can be more limited than a desktop IDE.
Reply to this answer
A browser-based compiler such as cpp.sh can work for quick experiments, but it wonโt meet your offline requirement. For offline practice, an Android C++ app or Termux with Clang would be a better fit.
Reply to this answer
Termux is probably the most flexible option. Install Clang for compiling, Git if you want version control, and a lightweight editor such as Vim or Micro. It isnโt as polished as a desktop IDE, but you can build and run small C++ programs locally without an internet connection.
MellowPine42: Thanks, Iโll give that a try.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowPine42: That makes sense. Iโm mainly looking for something that works without an internet connection, so Iโll focus on the local options.