|
|
|
|
|
|
12 2021 档案
用JavaSwing实现五子棋小游戏
摘要:1 package FiveChess; 2 import java.awt.Color; 3 import java.awt.Dimension; 4 import java.awt.Font; 5 import java.awt.Graphics; 6 import java.awt.event
阅读全文
5.27
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 typedef struct Node{ 4 int col,row,data; 5 Node*right,*down; 6 }OLNode,*OLink; 7 typedef struct{ 8 OLink*Rh
阅读全文
5.26
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 typedef struct Node{ 4 int row,col,data; 5 Node*right,*down; 6 }OLNode,*OLink; 7 typedef struct{ 8 OLink *R
阅读全文
5.25
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int vex[50]; 4 int matrix[50][50]; 5 int m,n,length; 6 }AZ; 7 void Create(AZ*A) 8 { 9 int e,t=0; 10 scanf("%d
阅读全文
5.23
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int data; 4 int col; 5 }Double; 6 typedef struct{ 7 Double element[50]; 8 int rowindex[50]; 9 int m,n,length;
阅读全文
5.22
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int row,col; 4 int data; 5 }Triple; 6 typedef struct{ 7 Triple element[200]; 8 int m,n,length; 9 }TSMatrix; 10
阅读全文
5.21
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int row,col; 4 int data; 5 }Triple; 6 typedef struct{ 7 Triple element[200]; 8 int m,n,length; 9 }TSMatrix; 10
阅读全文
5.20
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int x,y; 4 int c; 5 }item; 6 typedef struct{ 7 item element[100]; 8 int n; 9 }Poly; 10 void Create(Poly*A) 11
阅读全文
5.19
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int rowmin[50]; 4 int colmax[50]; 5 }Content; 6 void M(int n,int A[][50]) 7 { 8 Content C; 9 int indexmax,inde
阅读全文
5.18
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 void Create(int n,int**A)//注意此处要传入指针的地址值 4 { 5 *A=(int*)malloc(sizeof(int)*n); 6 for(int i=0;i<n;i++) 7 sca
阅读全文
3.32
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 typedef struct{ 4 int*element; 5 int k; 6 int rear; 7 }Queue; 8 void Create(Queue*Q) 9 { 10 scanf("%d",&Q->
阅读全文
3.31
摘要:1 #include<stdio.h> 2 typedef struct{ 3 char element[50]; 4 int front,rear; 5 }SeqQueue; 6 void Create(SeqQueue*S) 7 { 8 S->front=0; 9 S->rear=0; 10 c
阅读全文
3.29
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int element[50]; 4 int front,rear; 5 int length; 6 int tag; 7 }SeqQueue; 8 void Create(SeqQueue*S) 9 { 10 int
阅读全文
3.28
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 typedef struct Node{ 4 int data; 5 Node*next; 6 }Node; 7 typedef struct{ 8 9 Node *front,*rear; 10 }LinkQue
阅读全文
3.27
摘要:(1) 1 #include<stdio.h> 2 typedef struct{ 3 int vm,vn,vf; 4 int tag; 5 }item; 6 typedef struct{ 7 item element[50]; 8 int top; 9 }Stack; 10 void Init(
阅读全文
3.26
摘要:1 #include<stdio.h> 2 #include<math.h> 3 typedef struct{ 4 float A,p,e; 5 }item; 6 typedef struct{ 7 item element[50]; 8 int top; 9 }Stack; 10 void In
阅读全文
3.25
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int element[50]; 4 int top; 5 }Stack; 6 void Init(Stack*S) 7 { 8 S->top=-1; 9 } 10 void Push(Stack*S,int n) 11
阅读全文
3.24
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int m,n; 4 }element; 5 typedef struct{ 6 element array[50]; 7 int top; 8 }Stack; 9 void Inite(Stack*S) 10 { 11
阅读全文
3.21
摘要:1 #include<stdio.h> 2 #define MaxSize 20 3 typedef struct{ 4 char element[MaxSize]; 5 int top; 6 }SeqStack; 7 void InitStack(SeqStack*p)//初始化 8 { 9 p-
阅读全文
3.20
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int x,y; 4 int color; 5 }element; 6 typedef struct{ 7 element DArray[50][50];//二维数组本身不能存储其下标,故要用结构体记录其下标 8 int
阅读全文
3.19
摘要:3.19 假设一个算术表达式中可以包含三种括号:圆括号“( ”和“ )”、方括号“[”和“]”及花括号“{”和“}”,且这三种括号可按任意的次序嵌套使用。编写判别给定表达式中所含括号是否正确配对出现的算法(已知表达式已存入数据元素为字符的顺序表中)。 1 #include<stdio.h> 2 ty
阅读全文
3.17
摘要:1 #include<stdio.h> 2 typedef struct{ 3 char array[50]; 4 int top,rear; 5 }DoubleStack; 6 void Create(DoubleStack*S) 7 { 8 char e; 9 S->top=0,S->rear=
阅读全文
3.16
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int array[50]; 4 int top; 5 }SeqStack; 6 void Inite(SeqStack*S) 7 { 8 S->top=-1; 9 } 10 int Pop(SeqStack*S) 11
阅读全文
3.15
摘要:1 #include<stdio.h> 2 typedef struct{ 3 int array[50]; 4 int top,rear; 5 }DoubleStack; 6 void Create(DoubleStack*S) 7 { 8 int n,i; 9 scanf("%d",&n); 1
阅读全文
|
|