摘要: 1、c++ int n[101],m[101],result[101];int i=0,j=0,k=0,Ncount=0,Mcount=0; while(scanf("%d",&Ncount)!=EOF){for(i=0;iNcount)continue;//m内的数多于n内的数,不符合输入准则for(j=0;j<Mcount;j++)//读入数组m并查找{scanf("%d",&m[j]);result[j]=0;//result初始化为0 。。。。while(scanf("%d", &n)!=EOF) 阅读全文
posted @ 2013-11-01 17:12 kin2321 阅读(247) 评论(0) 推荐(0) 编辑
摘要: class Person { public static void prt(String s) { System.out.println(s); // 打印出来结果 } Person() { prt("父类无参构造方法."); } Person(String name) { prt("父类有参构造方法" + name); }}public class superyongfa extends Person{ superyongfa() // 子类无参构造函数或构造方法 { supe... 阅读全文
posted @ 2013-11-01 16:35 kin2321 阅读(258) 评论(0) 推荐(0) 编辑