码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
数组的添加 删除 和拷贝
//数组的添加public class ArrAddDemo { static void addLast(){ //添加一个数100到数组末尾 int[] oldArr=new int[]{45,56,12,78,88}; int[] newArr=new int[oldArr.length+1]; ...
分类:编程语言   时间:2017-03-31 12:59:07    阅读次数:206
【splunk】一些查询例子
最重要资料: 入门基础:http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchTutorial/WelcometotheSearchTutorial 查询语句写法:http://docs.splunk.com/Documentation/Sp ...
分类:其他好文   时间:2017-03-31 12:18:35    阅读次数:637
C#几种截取字符串的方法小结
1.根据单个分隔字符用split截取 例如: string st="GT123_1"; string[] sArray=st.split("_"); 输出:sArray[0]="GT123",sArray[1]="1"; 输出:sArray[0]="GT123",sArray[1]="1"; 2.利 ...
分类:Windows程序   时间:2017-03-31 12:16:21    阅读次数:190
配置文件读取,Properties类
Properties properties = new Properties(); FileInputStream fio = new FileInputStream("C:/Users/asus/Desktop/OOO/src/fdfs_client.conf"); properties.load ...
分类:其他好文   时间:2017-03-31 12:11:28    阅读次数:178
HIbernate 查询拼接参数
public List<TrailTestModel> findByEid(List<String> trailids, String eid) { // TODO Auto-generated method stub String hql = " from TrailTestModel where ...
分类:Web程序   时间:2017-03-31 12:01:17    阅读次数:153
●Splay的一些题
●个人感觉: 代码长; 函数多; (很套路); (很强的Splay,无愧于“区间王”) ●NOI2005维修数列 一个可以当模板学习的题,包含了众多操作(函数): 区间插入,删除,更新,翻转,询问信息以及”回收空间”(名字很刚)等。 update()pushdown() rotate() splay ...
分类:其他好文   时间:2017-03-31 11:56:22    阅读次数:250
写一程序,判断运行程序的系统是大字节序还是小字节序?写函数实现大小字节序转换
#include #include int main() { int i_num = 0x12345678; printf("[0]:0x%x\n", *((char *)&i_num + 0)); printf("[1]:0x%x\n", *((char *)&i_num + 1)); print... ...
分类:其他好文   时间:2017-03-31 11:08:14    阅读次数:231
Linux多线程
一个线程的生命周期起始于它被创建的那一刻,创建线程的接口: 函数说明: POSIX thread 简称 pthread pthread_t 是 unsigned long int 类型的变量,用来表示线程的ID POSIX thread 简称 pthread pthread_t 是 unsigned ...
分类:编程语言   时间:2017-03-31 11:06:17    阅读次数:228
补充作业
#include#include#includevoid funstr(char p[]) //定义函数funstr ,重新定义str为 p {int i; for(i=0;i<strlen(p);i++) //使用for循环 ,并使i小于p的长度 ,实现i++ {printf("%c",p[i])... ...
分类:其他好文   时间:2017-03-31 10:20:02    阅读次数:151
马士兵hadoop2.7.3_mapreduce笔记
java开发map_reduce程序 配置系统环境变量HADOOP_HOME,指向hadoop安装目录(如果你不想招惹不必要的麻烦,不要在目录中包含空格或者中文字符) 把HADOOP_HOME/bin加到PATH环境变量(非必要,只是为了方便) 如果是在windows下开发,需要添加windows的 ...
分类:其他好文   时间:2017-03-31 10:14:09    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!