会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
KLDYG
博客园
首页
新随笔
联系
订阅
管理
2017年11月11日
Linux网络与服务管理
摘要: 一,重新启动系统管理服务:/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
阅读(180)
评论(0)
推荐(0)
2017年3月20日
输入两个数据,如果输入数据之和为5的倍数,那么就算是输了,停止游戏;如果赢了,接着输入数据。
摘要: #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
阅读(859)
评论(0)
推荐(0)
2017年3月19日
switch语句
摘要: #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
阅读(165)
评论(0)
推荐(0)
2017年2月23日
计算一个三位数的个位,十位,百位之和
摘要: #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
阅读(1128)
评论(0)
推荐(0)
2017年2月14日
单分支和双分支选择结构程序设计
摘要: #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
阅读(1313)
评论(0)
推荐(0)
2017年2月3日
register变量
摘要: #include<stdio.h> int main() { register int ilnt; ilnt=100; printf("%d\n",ilnt); return 0; }
阅读全文
posted @ 2017-02-03 10:22 KLDYG
阅读(139)
评论(0)
推荐(0)
static变量
摘要: #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
阅读(126)
评论(0)
推荐(0)
auto变量
摘要: #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
阅读(157)
评论(0)
推荐(0)
2017年1月14日
长双精度类型
摘要: #include<stdio.h> int main() { long double fLongDouble; fLongDouble=46.257; printf("%f\n",fLongDouble); return 0; }
阅读全文
posted @ 2017-01-14 22:35 KLDYG
阅读(347)
评论(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
阅读(618)
评论(0)
推荐(0)
下一页
公告