+ 10
Can anyone help me to use termux in my phone for compiler c c++ programs
I found in that you can code in phone using termux .But I don't know can anyone suggest me a tuturiol sorry for bad English
9 Respostas
+ 28
open termux :
1) install c++ compiler: apt install clang
2) install an editor. for example nano: apt install nano
3) create new .cpp file with editor: nano filename.cpp
4) write your c++ program. to save file press (ctrl+x) or [volume down + x] then y and enter
5) compile: clang++ filename.cpp -o filename
6) run : ./filename
sorry for bad English.
+ 8
termux is powerfull!
not only for c++, ruby, python....
thank you very much!!
+ 4
Thnx
+ 3
you use also vim aditor for writing program
and u can install with command
pkg install vim
0
u can also use "gcc" command to compayl program
run : pkg install c++
0
And micro too
0
How to run java...
0
You can't run Java natally in Termux, you need to emulate a Linux Dist. (Use AnLinux, works with Termux)
0
Savan Patel I recomment nano over vim
And its not
pkg install c++
its pkg install clang