#include#includevoid main(){ double a,b,c,x1,x2; printf("请输入a"); scanf("%lf",&a); printf("请输入b"); scanf("%lf",&b); printf("请输入c"); scanf("%lf",&c);if(...
分类:
其他好文 时间:
2014-11-10 17:13:38
阅读次数:
186
写一段hello world: //?filename:?main.c
#include?<stdio.h>
int?main(void)
{
????printf("hello?wolrd!\n");
????return(-1);???
} 编译执行:gcc main.c && ./a.out 现在我们看看在当前she...
分类:
系统相关 时间:
2014-11-10 15:54:30
阅读次数:
280
#!/bin/bashecho"updataV1.0bycsc2014-11-10"VER="v1.3d"VERSION="SystemSecurityconfiguration"${VER}",byWuHanTianyu,2013-07-19."echo$VERSIONSET_NTP(){#setntpecho-e"\n>>>>>begintosetntp..."ntpstatus=`ps-ef|grepntp|grep-vgrep|wc-l`if[$ntpstatus!=0]..
分类:
其他好文 时间:
2014-11-10 15:45:43
阅读次数:
294
mysql安装完成后一般密码都为空,需要初始化密码,具体命令如下:mysql>/usr/local/mysql/bin/mysqladmin-urootpassword‘xxx‘mysql>SELECTUSER,HOST,PASSWORDFROMmysql.user;mysql>usemysql;mysql>updateusersetpassword=password("xxxx")whereuser="root";mysql>..
分类:
数据库 时间:
2014-11-10 15:42:51
阅读次数:
354
HBase提供了备份的API,直接使用shell脚本调用就可以啦。具体命令如下:
hbase org.apache.hadoop.hbase.mapreduce.Export 'user' /hbase_backup_set/20141110/user
hbase org.apache.hadoop.hbase.mapreduce.Import 'user' /hbase_backup_set...
分类:
其他好文 时间:
2014-11-10 15:34:23
阅读次数:
163
栈区间:在函数内部声明的变量都存放在栈区间,比如int char 数组 结构体 指针,只管申请,系统会自动帮我回收,收回的时间是作用域结束之后,遵循的原则是"先进后出",int a = 10;const int m =10;printf("%p\n", &m);printf("%p\n", &a);...
分类:
编程语言 时间:
2014-11-10 15:16:47
阅读次数:
186
长夜漫漫无心睡眠,来一篇嘿嘿。我相信如果已经用Shell脚本完成IOS和Android打包的朋友一定需要Jenkins怎么才能让策划打包ipa和apk?怎么才能彻底省去程序的时间,只要在同一局域网内不需要unity的开发环境,只要它有浏览器,它就能打包Jenkins无疑是最佳选择。Unity3D研究...
分类:
编程语言 时间:
2014-11-10 15:09:17
阅读次数:
242
一、C语言变量的内存分析C语言寻址由大到小#includeintmain(intargc,constchar* argv[]) {inta =100;intb =200;printf("The address of a is %d\n", &a);printf("The address of b i...
分类:
编程语言 时间:
2014-11-10 15:06:31
阅读次数:
248
//%f表示以十进制格式化输出浮点数
String s1 ="评分: %.1f";
String s2 = String.format(s1, 8.0);
System.out.println(s2);
System.out.printf("%s%n", new Integer(1212));
// %n表示换行
System.out.printf("%s%n", "end line"...
分类:
其他好文 时间:
2014-11-10 12:12:54
阅读次数:
148
近来在学习linux跟shell脚本。英文又多年不用还给教师了。遇到不懂的单词都要开个词霸网页词典来翻译,久了多有不爽。偶然找到http://www.iteye.com/topic/819440中提到一个翻译英文单词的shell脚本,可惜是多年以前的,并且用的还是如今被墙的谷歌,当然失效了。translate(){
..
分类:
系统相关 时间:
2014-11-10 10:13:12
阅读次数:
266