上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页
摘要: 两周的JAVA实习结束了,回想起来这两周的实习收获颇丰。 JAVA以前在学校的时候学了一个学期,但那时只是学到一些基础知识,学完之后也没什么感觉,记得在最后一次做实验的时候,才算是接触到JAVA在现实生活当中的应用,我记得当时正好上到Java网络功能那一块,老师给我们演示了一个QQ聊天软件,可以说那是我第一次看到真正用Java写的软件,那种感觉就像是第一次看到天安门一样,说不出的兴奋,说不出的激动,特别是自己把老师给的源代码调试出来后的那种感觉,觉得特别有成就感。以前我都是用C/C++做一些acm方面的习题,很少去接触这些现实中的软件的编写工作。其实一直很希望自己也能够向那些很牛叉的程序... 阅读全文
posted @ 2011-09-11 18:29 聊聊IT那些事 阅读(908) 评论(0) 推荐(0) 编辑
摘要: JAVA与数据库连接方法_2用JAVA连接数据库主要有两种方式,一是用JDBC-ODBC桥来连接,二是用相关厂商提供的相应驱动程序来连接。1、JDBC-ODBC桥接JDBC-ODBC桥接器是用JdbcOdbc.Class和一个用于访问ODBC驱动程序的本地库实现的。对于WINDOWS平台,该本地库是一个动态连接库DLL(JDBCODBC.DLL)。由于JDBC在设计上与ODBC很接近。在内部,这个驱动程序把JDBC的方法映射到ODBC调用上,这样,JDBC就可以和任何可用的ODBC驱动程序进行交互了。这种桥接器的优点是,它使JDBC目前有能力访问几乎所有的数据库。通行方式如图所示:应用程序-- 阅读全文
posted @ 2011-09-08 19:53 聊聊IT那些事 阅读(371) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2095和google入围赛的一道题一摸一样啊!View Code #include<iostream>using namespace std;int sum ,a;int n , i;int main(){ while(scanf("%d" , &n)!=EOF, n) { sum=0; for(i=0;i<n;i++) { scanf("%d",&a); sum=sum^a; } printf("%d\n",sum 阅读全文
posted @ 2011-06-06 14:21 聊聊IT那些事 阅读(404) 评论(0) 推荐(0) 编辑
摘要: View Code //找活动结束时间最小的,即以活动结束时间进行排序#include<iostream>#include<algorithm>using namespace std;int t ,k;struct node{ int a,b; }s[101];int cmp( node x, node y ){ if(x.b==y.b) return x.a<y.a; return x.b<y.b;} int main(){ int i,j; while( cin>>t , t ) { for( i = 0 ; i < t ; i++ ) 阅读全文
posted @ 2011-06-01 17:09 聊聊IT那些事 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 昨天省赛结束,第一次参加省赛,虽然拿了二等奖,对于一个第一次参加省赛的人来说,应该是很不错的成绩了,但我始终没能高兴起来,内心里也没了那股兴奋劲,有的只是平静,不知道是因为这只是努力的结果还是感觉肩上的担子更重了些. 省赛对我们一年的努力给出了肯定,也给出了我们对ACM认识的重新定位,以及我们的学习习惯和思维方式的重新思考。一直把努力放在第一位,也被那样的道理所困惑着,努力不一定成功,但不努力一定不会成功。 是啊,很浅显的道理。这句话本身没有错,只是理解这句话的人的错了。虽然此时我还具体说不明白,但那种感觉从比赛结束到现在一直在浮现。看着自己做过的一道道题目,翻着一沓沓的资料,看着那些自己记下 阅读全文
posted @ 2011-05-29 21:37 聊聊IT那些事 阅读(452) 评论(3) 推荐(0) 编辑
摘要: View Code #include<iostream>char ch[51][51];using namespace std;int main(){ int t; int n , m , k=0 ; int i,j; cin>>t; while(t--) { cin>>n>>m; for(i=0;i<n; i++) cin>>ch[i]; int j , i , sign = 0 ; int ans=0; for( i = 0 ; i < n ; i++ ) { for( j = 0 ; j < m ; j++ ) 阅读全文
posted @ 2011-05-22 20:52 聊聊IT那些事 阅读(614) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1874View Code #include<iostream>#define _max 9999999#define M 201using namespace std;int map[M][M];int visit[M];int dir[M];int n , m ;int a , b , c ;int len;void Init(int n){ int i,j; for(i = 0 ; i <n ; i++) { for(j=0 ; j <n; j++) map[i][j] = _ma 阅读全文
posted @ 2011-05-20 21:15 聊聊IT那些事 阅读(876) 评论(0) 推荐(0) 编辑
摘要: View Code #include<iostream>#include<cstring>using namespace std;typedef long long ll;int p[100001] , tem[100001] ,t;void Init(){ memset(p,0,sizeof(p)); for(ll i=2; i<=100000; i++) { if( !p[i] ) { for( ll j = 2 ; j*i<=100000 ; j++ ) p[j*i]=1; } } t=0; for(int i=2;i<1000000;i++) 阅读全文
posted @ 2011-05-20 17:41 聊聊IT那些事 阅读(268) 评论(0) 推荐(0) 编辑
摘要: View Code #include<iostream>using namespace std;char a[1001] ;char x_a[1001] , y_b[1001] ;char xx[1001] , yy[1001];char x1[1001] , y1[1001];int Lx , Ly ;int sum[1001] ;int num ;int sign=0;int mark_x , mark_y ;int x[1001],y[1001];void Init_A() //将字符转化为数字{ int i; for ( i = 0 ; i < Lx ; i++ ) 阅读全文
posted @ 2011-05-18 16:26 聊聊IT那些事 阅读(639) 评论(0) 推荐(0) 编辑
摘要: View Code #include<iostream>usingnamespace std;char ch[101];int mark=0 , cnt; int len;void dfs(int x , int y , int i ){ if( x < y ) { return ; } if( y == x && i == len ) { cnt++; } if(ch[i]=='?') { dfs(x+1 , y , i +1 ); dfs(x, y +1 , i +1 ); } ... 阅读全文
posted @ 2011-05-17 20:28 聊聊IT那些事 阅读(567) 评论(2) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 26 下一页