摘要:
//// StudentTest3.cpp : 定义控制台应用程序的入口点。
/*
数据结构实验一,用顺序表实现 线性表的造作 */ #include "stdafx.h"
#include using namespace std;
#define length 100 //宏定义数组长度
//定义Student结构体
struct Student{
int num;
float score;
}; //函数声明
void Creat(Student (&stu)[length]);//创建Student顺序表
void Display(Student (& 阅读全文
随笔档案-2012年09月
链表练习(数据结构线性表test2)
2012-09-16 13:29 by Lves Li, 209 阅读, 收藏,
摘要:
// StudentTest2.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include #include using namespace std;
struct Student
{ int num; float score; Student *next; //next指向Student结构体变量
}; Student *Creat_front(); //按头插法创建链表,以-1 -1作为输入结束标志
void Output(Student *head); //输出链表全部元素 Student *Creat_re... 阅读全文
html5(test1.提交表单)
2012-09-14 23:25 by Lves Li, 300 阅读, 收藏,
摘要:
"> LoginDifferent.jsp 注册界面 昵称: 邮箱: 密码: 确认密码: ... 阅读全文
计算水仙花数
2012-09-12 21:22 by Lves Li, 274 阅读, 收藏,
摘要:
//数据结果课 老师布置了计算水仙花数程序转载如下:package com.WildCat.Shuixianhuan;
import java.math.BigInteger;
import java.util.Arrays;
public class a { private static BigInteger[] table = new BigInteger[10]; public static void main(String[] args) { long time = System.nanoTime(); find(21);//计算21位水仙花数 time =... 阅读全文
Test2.数据库批处理添加练习(mysql_java)
2012-09-11 21:51 by Lves Li, 173 阅读, 收藏,
摘要:
package JDBC.WildCat.com; import java.sql.*;
public class TestBatch { /** * 批处理添加练习 * @param args */ public static void main(String[] args)throws Exception { // step1. new一个Driver Class.forName("com.mysql.jdbc.Driver"); //step2. 拿到一个连接 String url = "jdbc:mysql://localhost/wild_java... 阅读全文
Test1. java连接数据库(mysql)
2012-09-11 21:47 by Lves Li, 145 阅读, 收藏,
摘要:
package JDBC.WildCat.com;
import java.sql.*;
public class TestJdbc1 { /**标准版 * MySql数据库小程序 实现wild_java数据库里student表的查询 * * @param args * @throws SQLException * @throws ClassNotFoundException */ public static void main(String[] args) { Connection conn=null; Statement stmt=... 阅读全文
浙公网安备 33010602011771号