上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
  2016年12月12日
摘要: 题目:我们知道分数由分子和分母组成,所以给定你两个整数(可负,可正),第一个代表分子,第二个代表分母。你能不能把他们化为最简单的形式呢?例如: 输入: -4 8 ; 输出:-1/2void main(){ int a,b; int i=1; int flag=i;//最大公约数 int flag2=0;//a,b中负号的个数 scanf("%d %d",&a,&b); if(b == 0){... 阅读全文
posted @ 2016-12-12 21:45 wzyy 阅读(1153) 评论(0) 推荐(1)
  2016年12月11日
摘要: #include #include //返回第一个子串在主串的位置,找不到返回-1 int StrMatch(char *source, char *match){ int slen=strlen(source); int mlen=strlen(match); int i=0,j=0; while(i%d\n",result); }... 阅读全文
posted @ 2016-12-11 11:25 wzyy 阅读(640) 评论(0) 推荐(0)
  2016年12月10日
摘要: #include //将i个元素从x通过y移动到z上 void move(int i, char x, char y, char z){ if(i==1){ printf("%c-->%c\n",x,z);//直接从x移动到z上 }else{ move(i-1,x,z,y);//将i-1个元素从x通过z移动到y上 printf(... 阅读全文
posted @ 2016-12-10 19:58 wzyy 阅读(344) 评论(0) 推荐(0)
  2016年12月5日
摘要: LinkedList的数据结构就是双向链表,如下所示: 构造器: add: get: remove: 阅读全文
posted @ 2016-12-05 19:53 wzyy 阅读(296) 评论(0) 推荐(0)
摘要: 方法一、自定义的链表实现package com.code.yuesefu; public class YueSeFuList { public static void main(String[] args) { int count = 41;//申请一个指定长度的链表 Node n = YueSeFuList.createNodes(coun... 阅读全文
posted @ 2016-12-05 19:52 wzyy 阅读(1850) 评论(0) 推荐(0)
  2016年11月28日
摘要: package com.java.dataStruct; //节点类 public class Node { E item; Node next; public Node(){ } public Node(E element){ this.item = element; } public Node(E eleme... 阅读全文
posted @ 2016-11-28 22:17 wzyy 阅读(944) 评论(1) 推荐(0)
摘要: package com.java.dataStruct; public class Node { E item; Node next; public Node(){ } public Node(E element){ this.item = element; } public Node(E element, N... 阅读全文
posted @ 2016-11-28 21:35 wzyy 阅读(408) 评论(0) 推荐(0)
  2016年11月27日
摘要: 1.属性 2.构造器 提供了3个构造器 3.添加数据 动态扩容策略 public static int[] copyOf(int[] original, int newLength) { int[] copy = new int[newLength]; System.arraycopy(origin 阅读全文
posted @ 2016-11-27 21:40 wzyy 阅读(480) 评论(0) 推荐(0)
  2016年11月24日
摘要: 前面提到RMI使用java标准的对象序列化机制,但是很难穿透防火墙。 另一方面,Hessian和Burlap能很好地穿透防火墙,但是使用私有的对象序列化机制。 Spring提供的http invker是一个新的远程调用模型,作为Spring框架的一部分,能够执行基于HTTP的远程调用(让防火墙不为难 阅读全文
posted @ 2016-11-24 22:55 wzyy 阅读(508) 评论(0) 推荐(0)
  2016年11月23日
摘要: 上篇谈到RMI技术,加上Spring的封装,用起来很方便,但也有一些限制 这里的Hessian和Burlap解决了上篇提到的限制,因为他们是基于http的轻量级远程服务。 Hessian,和RMI一样,使用二进制消息进行客户端和服务端的交互,但是它的二进制消息可以移植到其他非java的语言中 Bur 阅读全文
posted @ 2016-11-23 21:30 wzyy 阅读(275) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页