会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
solicit
博客园
首页
新随笔
联系
订阅
管理
2025年2月13日
c++写入shell命令
摘要: 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)