摘要: C++编程执行shell命令 本文写作用于linuxC++编程 system调用执行shell命令 使用system(“ls -l ”)执行shell命令,但其返回值为整型。返回0则为不成功执行。 #include <iostream> int main(){ std::string cmd = " 阅读全文
posted @ 2025-02-13 00:13 LemHou 阅读(82) 评论(0) 推荐(0)