会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Howareyou?
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2016年7月4日
mysql优化
摘要: 1.启用InnoDB的每张表一个数据文件设置 InnoDB可以把每个数据库的信息保存在一个.idb数据文件中,每个.ibd文件代表自己的表空间,通过这样的方式可以更快地完成类 似“TRUNCATE”的数据库操作,当删除或截断一个数据库表时你也可以回收未使用的空间,这样配置的另一个好处是你可以将某些数
阅读全文
posted @ 2016-07-04 15:57 Howareyou?
阅读(332)
评论(0)
推荐(1)
编辑
2016年6月27日
c语言学习的第10天
摘要: #include <stdio.h> int main() { int many; printf("你想看几次?"); scanf("%d",&many); for (int count=0;count<many;count++) { printf("挫折其实是迈向成功所应缴的学费。\n"); }
阅读全文
posted @ 2016-06-27 18:31 Howareyou?
阅读(263)
评论(0)
推荐(0)
编辑
2016年6月26日
学习c语言的第9天
摘要: #include <stdio.h> int main() { float sum=0,wage=0; int i=1; int num; printf("+++平均工资统计程序+++\n"); printf("请输入参加统计的员工数目:"); scanf("%d",&num); printf("总
阅读全文
posted @ 2016-06-26 17:34 Howareyou?
阅读(248)
评论(0)
推荐(0)
编辑
2016年6月25日
学习c的第8天
摘要: #include <stdio.h> int main() { char ch; printf("请输入分数等级(A,B,C,D):"); scanf("%c",&ch); switch(ch) { case 'A': printf("好\n"); case 'B': printf("良\n");
阅读全文
posted @ 2016-06-25 18:40 Howareyou?
阅读(205)
评论(0)
推荐(0)
编辑
2016年6月24日
学习c的第7天
摘要: #include <stdio.h> int main() { int x=0; if (x==0) { printf("x为假\n"); } else { printf("x为真\n"); } return 0; } if (x==0)也可以写成if(!x),因为x的值为0即为假,所以!x为真,计
阅读全文
posted @ 2016-06-24 18:12 Howareyou?
阅读(169)
评论(0)
推荐(0)
编辑
2016年6月23日
学习c的第6天2
摘要: #include <stdio.h> #include <math.h> int main() { float num; printf("请输入该生当月的消费额:\n"); scanf("%f",&num); if (num>=0) { if (num==0) { printf("零消费。\n");
阅读全文
posted @ 2016-06-23 18:16 Howareyou?
阅读(182)
评论(0)
推荐(0)
编辑
c语言学习的第6天
摘要: #include <stdio.h> int main() { int x=100; if(x==0) { printf("x等于0\n"); printf("x不等于1\n"); } printf("程序结束\n"); return 0; } 输出程序结束 #include <stdio.h> i
阅读全文
posted @ 2016-06-23 14:49 Howareyou?
阅读(249)
评论(0)
推荐(0)
编辑
2016年6月22日
sed命令实战
摘要: 删除所有的空行,并在每行后面增加一个空行 sed '/^$/d;G' /etc/fstab 将每一行前导的“空白字符”(空格,制表符)删除 sed 's/^[\t ]*//' file 将文本中的 aaa bbb ccc 都替换为ttt sed 's@aaa\|bbb\|ccc@ttt@g' fil
阅读全文
posted @ 2016-06-22 16:57 Howareyou?
阅读(415)
评论(0)
推荐(0)
编辑
grep命令实战
摘要: 显示/etc/rc.d/rc.sysinit中以#开头,且后面跟一个或多个空白字符,而后又跟了任意非空白字符的行 grep "^#[[:space:]]\+.\+" /etc/rc.d/rc.sysinit 查找/proc/cpuinfo文件中关键字,并显示前后1行 grep -C 1 "Genui
阅读全文
posted @ 2016-06-22 16:55 Howareyou?
阅读(352)
评论(0)
推荐(0)
编辑
2016年6月21日
c语言学习的第五天
摘要: #include<stdio.h> #include<stdbool.h> int main() { _Bool num=1; if (num==true); { printf("睡觉\n"); } getchar(); return 0; } _Bool num=1 其中_Bool是定义布尔类型变
阅读全文
posted @ 2016-06-21 17:30 Howareyou?
阅读(237)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
···
9
下一页
公告