自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 顺序栈

# include# include# includetypedef char SElemType;typedef int Status;# define STACK_INIT_SIZE 100# define STACKINCREAMENT 10# define OK 1# define ERROR 0typedef struct{ SElemType

2009-12-10 22:22:00 661

原创 数据结构实现一元多项式相加

# include# includetypedef struct{ float coef; //系数 int expn; //指数}ElemType;typedef struct LNode{ //结点类型 ElemType data; struct LNode *next;}*LinkList;void MakeNode(LinkLi

2009-12-10 22:20:00 12377 2

原创 实用链表

2_19.h# include# include# includetypedef struct LNode{ //结点类型 int data; struct LNode *next;}*Link,*Position;typedef struct{ //链表类型 Link head,tail; //分别指向线性链表中的头结点和最后一个结点 int

2009-12-09 10:47:00 843

原创 数据结构实现循环双链表

头文件“2_3_3.h”# include# include# includetypedef struct DuLNode{ int data; struct DuLNode *prior; struct DuLNode *next;}*DuLinkList;void CreateList(DuLinkList &L,int n){ //操作一 /

2009-12-05 21:38:00 718

原创 数据结构实现静态链表

头文件“2_13.h”# include# include# define MAXSIZE 100 //链表的最长长度typedef struct{ char data; int cur;}component,SLinkList[MAXSIZE];void InitSpace_SL(SLinkList &space){ //将一维数组space中各分

2009-12-05 21:32:00 1106

原创 数据结构实现单链表

头文件 “2_3.h”# include# include# includetypedef struct LNode{ int data; struct LNode *next;}*LinkList;void CreateList(LinkList &L,int n){ //操作一 //逆位序输入n个元素的值,建立带表头结点的单链线性表L L=(L

2009-12-05 21:27:00 787

原创 数据结构实现顺序线性表的一些小应用

头文件 “2_1.h”# include"cf1.h"void union1(SqList &La,SqList Lb){ //操作一 //将所有在线性表Lb中但不在La中数据元素插入到La中 int La_len=ListLength(La),Lb_len=ListLength(Lb),e; //求线性表的长度 for(int i=1;i<=Lb_len;i++){

2009-12-05 21:22:00 662

原创 数据结构实现顺序线性表

头文件  “cf1.h” # include# include# include# define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量# define LISTINCREAMENT 100 //线性表存储空间的分配增量typedef struct{ int *elem; //存储空间基址,是数组的头指针 int l

2009-12-05 21:18:00 996 1

原创 数据结构实现三元组

# include# include# includetypedef int *Triplet; //由InitTriplet分配3个元素存储空间void InitTriplet(Triplet &T,int v1,int v2,int v3){ //操作一 //构造三元组T,依次置T的3个元素初值为v1,v2,v3 T=(int*)malloc(3*sizeo

2009-12-03 21:43:00 1501

翻译 java模拟舞动字符

 源代码:import java.applet.Applet;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;public class bra

2009-11-25 09:46:00 880

原创 用java模拟写字板程序

源程序代码:import java.awt.Color;import java.awt.Container;import java.awt.FlowLayout;import java.awt.Graphics;import java.awt.event.MouseEvent;import java.awt.event.MouseListener;import java

2009-11-25 09:37:00 3311

翻译 用java模拟浏览器程序

 程序源代码:import java.awt.BorderLayout;import java.awt.Container;import java.awt.Cursor;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.IOException;i

2009-11-25 09:29:00 2258

翻译 华氏温度转换摄氏温度程序

 第一个是Applet小程序: import java.applet.Applet;import java.awt.Label;import java.awt.TextField;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class HuaShi ext

2009-11-21 22:07:00 8295 1

原创 将一个数字转化为一个字符

import java.util.Random;import javax.microedition.midlet.MIDlet;import javax.microedition.midlet.MIDletStateChangeException;public class MIDlet5 extends MIDlet { Random r=new Random();

2009-08-11 14:51:00 1061

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除