03 2018 档案

摘要:1. 在Eclipse中安装Junit和Hamcrest两个外部jar文件 (1)在Eclipse窗口中选中project选项卡中的properties选项,选中Java Build Path选项,选择Libraries选项,出现当前项目中包含的jar文件列表; (2)点击右侧Add Externa 阅读全文
posted @ 2018-03-22 11:10 cczl 阅读(120) 评论(0) 推荐(0)
摘要:1) 绘制程序的控制流图: package cn.tju.scs; public class Print { private static int MAXPRIMES=100; public static boolean isDivisable(int a,int b) { if(b%a==0) r 阅读全文
posted @ 2018-03-20 21:14 cczl 阅读(124) 评论(0) 推荐(0)
摘要:public int findLast (int[] x, int y) { //Effects: If x==null throw NullPointerException // else return the index of the last element // in x that equa 阅读全文
posted @ 2018-03-14 22:23 cczl 阅读(83) 评论(0) 推荐(0)
摘要:void update(int i,int l,int r,int c) { if(tr[i].l==l&&tr[i].r==r) { tr[i].f=c; int len=(tr[i].r-tr[i].l+1); tr[i].hash1=fac[0][c][len]; tr[i].hash2=fa 阅读全文
posted @ 2018-03-12 18:57 cczl 阅读(92) 评论(0) 推荐(0)