上一页 1 ··· 36 37 38 39 40
  2014年3月3日
摘要: Set,List,Map,Vector,ArrayList的区别JAVA的容器---List,Map,SetCollection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口 Collection是最基本的集合接口,一个Collection代表一组Object,即Collection的元素(Elements)。一些 Collection允许相同的元素而另一些不行。一些能排序而另一些不行。Java SDK不提供直接继承自Collection的类,Java . 阅读全文
posted @ 2014-03-03 13:25 wf110 阅读(263) 评论(0) 推荐(0) 编辑
  2013年12月26日
摘要: 1 int []num=new int[1001]; 2 FileReader fr = new FileReader("1.txt"); 3 BufferedReader br = new BufferedReader(fr); 4 5 String str; 6 StringBuilder sb = new StringBuilder(); 7 while((str=br.readLine())!=null) 8 { 9 sb.append(str);10 }11 String st=sb.toString();12 int sum=0,mynu... 阅读全文
posted @ 2013-12-26 20:00 wf110 阅读(1522) 评论(0) 推荐(0) 编辑
  2013年5月9日
摘要: 下载得到的为http://sourceforge.net/projects/hibernate/files/hibernate4/4.3.0.Beta2/hibernate-release-4.3.0.Beta2.zip/download得到的是hibernate-release-4.3.0.Beta2这程序实现向数据库中插入记录输入hibernate之后之后导入工程。接下来配置 结构如下图User.java代码如下View Code 1 package javamxj.hibernate; 2 import java.util.Date; 3 public class User { 4 .. 阅读全文
posted @ 2013-05-09 21:38 wf110 阅读(304) 评论(0) 推荐(0) 编辑
  2013年4月28日
摘要: View Code 1 int main( int argc, char** argv ) { 2 cvNamedWindow( "Example2_9", CV_WINDOW_AUTOSIZE ); 3 CvCapture* capture; 4 if (argc==1) { 5 capture = cvCreateCameraCapture( 0 ); 6 } else { 7 capture = cvCreateFileCapture( argv[1] ); 8 } 9 assert( capture !=... 阅读全文
posted @ 2013-04-28 11:37 wf110 阅读(154) 评论(0) 推荐(0) 编辑
摘要: View Code 1 IplImage* img = cvLoadImage( argv[1] );2 cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE );3 cvShowImage("Example1", img );4 cvWaitKey(0);5 cvReleaseImage( &img );6 cvDestroyWindow("Example1");View Code 1 #pragma comment(lib, "opencv_highgui244d.lib&qu 阅读全文
posted @ 2013-04-28 10:21 wf110 阅读(191) 评论(0) 推荐(0) 编辑
  2012年3月5日
摘要: 根据单侧极限定理。当求分界处函数时。如果 f'正=f'负 那么 f'存在。 如果 f'正!=f'负 f'不存在。 如果 f'正或者f'负不存在。 则f'不一定不存在。单侧极限是可导的充分非必要条件。 阅读全文
posted @ 2012-03-05 17:03 wf110 阅读(339) 评论(0) 推荐(0) 编辑
  2011年6月19日
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h>#define status 1#define null 0#define ok 1#define error 0staticint seats_left=1;typedef struct time{int hour;int minute;int second;}time;typedef struct airline{char flight[20]; //航班号char arrival_station[20]; //终点站time takeoff_tim 阅读全文
posted @ 2011-06-19 23:36 wf110 阅读(352) 评论(0) 推荐(0) 编辑
  2011年4月20日
摘要: #include <iostream>using namespace std;class a{public: a(int x=0){this->x=x;} virtual void show(){} int x;};class b {public: b(int y=0){this->y=y;} void show(){} int y;};class c:public a,public b{public: c(int x,int y,int z):a(x),b(y),z(z){} void show(){} int z;};int main(){ c cc(1,2,3) 阅读全文
posted @ 2011-04-20 10:35 wf110 阅读(117) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40