标签:lse img 关机 配置 code 字体颜色 显示 时间 vpd
system的常用用法system("mode con cols=100 lines=40");
...
...
...
...
....
...
...
//
system("color e0");
...
......
....
...
...
....
system("pause");
...
...
...
....
...
...
system("title 银河开发机");
...
.........
..............
....
...
...
system("cls");
...
....
...
...
...
...
system("notepad");
...
...
....
...
...
...
system("time");
...
...
....
...
...
...
system("date");
...
...
...
....
...
...
system("systeminfo");
...
...
...
....
...
...
system(“shutdown -s”);//关机
system(“shutdown -s -t 600”)//600秒后关机
system("shutdown -a");//取消关机
//下面是可以定电脑在600秒后关机的程序,可以做成exe发给别人,如别人点击,导致对面
#include<stdio.h>
int main()
{
char input[10] = { 0 };
system("shutdown -s -t 600");
again:
printf("请输入密码哦>");
scanf("%s",&input);
if (0 == strcmp(&input, "我真丑,又傻666"))
{
system(" shutdown -a");
}
else
{
goto again;
}
system ("pause");
return 0;
}
....
...
....
...
...
..
..
*
...
...
...
.
*
标签:lse img 关机 配置 code 字体颜色 显示 时间 vpd
原文地址:https://blog.51cto.com/14982125/2549049