2012年7月12日

JDBC连接Mysql数据库

摘要: package xy.com.dao;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class Jdbc{ private Connection conn=null; /* *建立连接 */ public Connection getConnection(){ String uri="jdbc:mysql://localhost:3306/Xy 阅读全文

posted @ 2012-07-12 15:23 xyyue 阅读(248) 评论(0) 推荐(0)

2012年5月3日

链表C++

摘要: #include<iostream>using namespace std;template<class T>struct SLNode{ //数据域 T data; //指针域 SLNode<T> *next; //构造函数 SLNode(SLNode<T> *nextNode=NULL) { next=nextNode; } SLNode(const T &item,SLNode<T> *nextNode=NULL) { data=item; next=nextNode; }};template<class T> 阅读全文

posted @ 2012-05-03 21:33 xyyue 阅读(139) 评论(0) 推荐(0)

导航