摘要: 一,重新启动系统管理服务:/etc/init.d/acpid restrart 二,关闭系统服务器: /etc/init.d/acpid stop 三,开启系统服务: /etc/init.d/acpid start 四,查看当前所有系统服务状态: chkconfig--list | more 阅读全文
posted @ 2017-11-11 17:02 KLDYG 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void main() { int iNum1,iNum2; while(1) { printf("please input two number:"); scanf("%d%d",&iNum1,&iNum2); if(iNum1+iNum2)%5!=0) pri 阅读全文
posted @ 2017-03-20 07:53 KLDYG 阅读(811) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void main() { char cLicence; printf("please input your driving licence:"); scanf("%c",&Licence) { case'A': printf("you can drive bus 阅读全文
posted @ 2017-03-19 20:38 KLDYG 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void main() int iNum,iSum; int i1,i2,i3; printf("请输入一个三位数:"); scanf("%d",iNum); i1=iNum%10; i2=iNum/10%10; i3=iNum/100; iSum=i1+i2+i 阅读全文
posted @ 2017-02-23 23:19 KLDYG 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void main() { int iX,iY; printf("please intput a integer:"); scanf("%d",&iX); iY=iX; if(iX<0) iY=-iX; printf("\n|%d|=%d",iX,iY); get 阅读全文
posted @ 2017-02-14 19:48 KLDYG 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { register int ilnt; ilnt=100; printf("%d\n",ilnt); return 0; } 阅读全文
posted @ 2017-02-03 10:22 KLDYG 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void AddOne() { staic int ilnt=1; ilnt=ilnt+1; printf("%d\n",ilnt); } int main() { printf("第一次调用: "); AddOne(); printf("第二次调用: "); A 阅读全文
posted @ 2017-02-03 10:17 KLDYG 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void AddOne() { auto int ilnt=1; ilnt=ilnt+1; printf("%d\n",ilnt); } int main() { printf("第一次调用: "); AddOne(); printf("第二次调用"); AddO 阅读全文
posted @ 2017-02-03 10:05 KLDYG 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { long double fLongDouble; fLongDouble=46.257; printf("%f\n",fLongDouble); return 0; } 阅读全文
posted @ 2017-01-14 22:35 KLDYG 阅读(340) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { double dDoubleStyle; dDoubleStyle=61.458; printf("%f\n",dDoubleStyle); return 0; } 阅读全文
posted @ 2017-01-14 22:29 KLDYG 阅读(610) 评论(0) 推荐(0) 编辑