如何用C++调用命令行

转载自HFColin的博客 想在C++中调用命令行?system(char a【】);能满足你的要求。 让我们来试试: 以shutdown为例(关机,详细请搜命令行) [cpp] view plain copy  print? #include<cstdlib>//要调用这个库   int main()   {       system('shutdown -s -t 900');       s
相关文章
相关标签/搜索