![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C小程序设计
Storyteller-LS
希望五年以后我还从事这个行业
展开
-
定时关机小程序
思路:使用system()函数+命令行命令#include<stdio.h>#include<string.h>#include<stdlib.h>main(){ char cmd[20]="shutdown -s -t "; char t[5]="0"; int c; system("title C语言关机程序"); //设置cmd窗口标题 // system转载 2017-04-07 01:21:56 · 461 阅读 · 0 评论 -
批处理命令设置IP
:: 设置IP地址@set /p choice=请选择设置类型(1:wlan静态IP / 2:wlan自动获取IP / 3:以太网2静态IP / 4:以太网2动态IP):echo.if "%choice%"=="1" goto ip1if "%choice%"=="2" goto ip2if "%choice%"=="3" goto ip3if "%choice%"=="4" goto...转载 2019-07-29 15:36:49 · 1755 阅读 · 0 评论