Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了解决OJ问题,我经常面临将输出作为文件的重要性。但是freopen()在 android 中不起作用。实际上,有一种方法可以使用Termux(或类似应用程序)复制根目录中的代码,然后
./a.out <input.txt> output.txt
但这是一个非常漫长的过程。有什么方法可以轻松地执行此输入/输出任何应用程序或方法吗?