网站大量收购独家精品文档,联系QQ:2885784924

C语言小程序〔可自己添加功能〕.doc

  1. 1、本文档共11页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
C语言小程序〔可自己添加功能〕

//VC6.0环境下编译,需下载easyx //时间:2015年7月7日 //刚学计算机C语言,自己编写的一个小程序 #include graphics.h #includestdio.h #include math.h #include time.h #includestring.h #includestdlib.h #includeconio.h #includewindows.h #define PI 3#define MAXSTAR 200 void xing(); void arrow(); void ziqi(); void andriod(); void rose(); void siyecao(); void menu() { printf( ╪╪╪╪╪╪╧╧╧╧╧╧╧╧╪╪╪╪╪╪\n); printf(╔═══╧╧C语言小程序 ╧╧═══╗\n); printf(║※1.实现10分钟内的定时关闭计算机 ║\n); printf(║※2.立即关闭计算机  ║\n); printf(║※3.注销计算机  ║\n); printf(║※4.打开注册表  ║\n); printf(║※5.打开记事本  ║\n); printf(║※6.查询本机IP地址  ║\n); printf(║※7.输出心型图案  ║\n); printf(║※8.修改系统密码  ║\n); printf(║※9.输出玫瑰花图案  ║\n); printf(║※A.画一个箭头  ║\n); printf(║※C.将程序写入开机自启  ║\n); printf(║※D.画一个安卓机器人  ║\n); printf(║※E.画一朵四叶草   ║\n); printf(║※0.退出系统  ║\n); printf(╚═══════════════════╝\n); } struct DOT { double x; double y; double z; double r; // 红色 double g; // 绿色 // b(蓝色) 通过 r 计算 }; void main() { system(title C语言小程序--王熠);//设置cmd窗口标题 system(mode con cols=48 lines=25);//窗口宽度高度 system(color 0C); system(date /T); system(TIME /T); menu(); char cmd[20]=shutdown -s -t ; char mima[30]=net user administrator ; char t[5]=0; char s[7]=0; char ch; ch=getch(); { if(ch==1) {printf(你想在多少秒后自动关闭计算机?(0~600)\n); scanf(%s,t); system(strcat(cmd,t)); } if(ch==2) {system(shutdown -p); } else if(ch==3) {system(shutdown -l); } else if(ch==4) {system(regedit.exe); } else if(ch==5) {system(notepad); } else if(ch==6) {system(ipconfig); } else if(ch==7) {xing(); } else if(ch==8) {printf(请输入密码(仅改变系统管理员账号administrator密码):\n); scanf(%s,s); system(strcat(mima,s)); } else if(ch==9) {rose(); } else if(ch==A||ch==a) {arrow(); } else if(ch==C||ch==c) {ziqi(); } else if(ch==D||ch==d) {andriod(); } else if(ch==E||ch==e) {siyecao(); } else if(ch==0) {system(tskill cmd); } else printf(王熠制作\n); } system(pause); ex

文档评论(0)

ktj823 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档