用户:CodeStar_查看:124 回复:4 评论:6 创建时间:2021-04-28T20:19:17
//【例1-12】 利用system库函数实现关机。 #include <stdio.h> #include <stdlib.h> int main(void) { printf("5秒后关闭当前计算机!\n"); system("shutdown -s -t 5 -f"); return 0; }
视屏链接:
https://shequ.codemao.cn/work/96781859?entry
学到了学到了
点赞2
评论
...去试一下
点赞1
注意,是C语言!!!
厉害
我们学过吗?
点赞0
NO!!!
C++行吗
如果是 DEV-C++ 可以添加新工程,选择C工程,选择Console Application,在点确定就好啦
可以写一个用C++得吗
C++没有此功能哦~