自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 蛇形填数的三种类型

蛇形填数1在n*n方阵里填入1,2,3,…,n*n,要求填成蛇形。例如n=4时方阵为: #include<stdio.h>#include<stdlib.h>int main(){ int n,x,y; printf("请输入蛇形填数的行(列)数\n"); scanf("%d",&n); int arr[n][n]; for(x=0;x<n;x++){ for(y=0;y<n;y++){ arr[x][y]...

2021-11-23 17:04:26 435

原创 迷宫 栈的实现

给一个二维列表,表示迷宫(0表示通道,1表示围墙)。给出算法,求一条走出迷宫的路径。1代表墙,0代表路,图示如下:#include <stdio.h>#include <stdlib.h>#include <malloc.h>#define max 100typedef struct Dircet{ int x; int y;}Dircet;typedef struct Coordinate{ int x; int y;}c..

2021-11-23 16:57:02 514

原创 蛇形填数的三种类型

蛇形填数1在n*n方阵里填入1,2,3,…,n*n,要求填成蛇形。例如n=4时方阵为: #include<stdio.h>#include<stdlib.h>int main(){ int n,x,y; printf("请输入蛇形填数的行(列)数\n"); scanf("%d",&n); int arr[n][n]; for(x=0;x<n;x++){ for(y=0;y<n;y++){ arr[x][y]=0;...

2021-11-23 16:52:03 1047

原创 单链表的基本操作

#include<stdio.h>#include<stdlib.h>#define OK 1#define ERROR -1typedef int Status;typedef struct Node{ int data; struct Node *next; }Node,*LinkList;void ShowMenu(){ printf("\n"); printf("\n****************链栈基本操作*.

2021-11-19 09:29:20 732

数据结构的各项基本操作.cpp

数据结构作业

2021-11-19

空空如也

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

TA关注的人

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