当前位置: 首页 > news >正文

html个人网站模板东山网站建设

html个人网站模板,东山网站建设,wordpress底部跟随按钮怎么做,智慧校园学生管理系统2.单循环链表 data|next——data|next——data|next——头节点 1.初始化链表 2.增加节点#xff08;头插法、尾插法#xff09; 3.删除节点 4.遍历链表 定义一个结构体#xff0c;存放data域和指针域#xff1a; typedef struct Node {//定义一个结构体… 2.单循环链表 data|next——data|next——data|next——头节点 1.初始化链表 2.增加节点头插法、尾插法 3.删除节点 4.遍历链表 定义一个结构体存放data域和指针域 typedef struct Node {//定义一个结构体存放data域和指针域int data;//数据域类型struct Node* next; }Node; 初始化链表 Node* initList() {//初始化链表Node* L (Node*)malloc(sizeof(Node));L-data 0;L-next L;return L; } 头插法 void headInsert(Node* L, int data) {//头插法Node* node (Node*)malloc(sizeof(Node));node-data data;node-next L-next;L-next node; } 尾插法 void tailInsert(Node* L, int data) {//尾插法Node* n L;Node* node (Node*)malloc(sizeof(Node));node-data data;while (n-next ! L) {n n-next;}node-next L;n-next node; } 删除 int Delete(Node* L, int data)//删除 {Node* preNode L;Node* node L-next;while (node ! L){if (node-data data) {//deletepreNode-next node-next;free(node);return true;}preNode node;node node-next;}return false; } 遍历链表 void printList(Node* L) {//遍历链表Node* node L-next;while (node ! L) {printf(%d-, node-data);node node-next;}printf(NULL\n); } main函数 int main() {Node* L initList();headInsert(L, 1);headInsert(L, 2);headInsert(L, 3);headInsert(L, 4);headInsert(L, 5);tailInsert(L, 6);tailInsert(L, 7);tailInsert(L, 8);tailInsert(L, 9);tailInsert(L, 10);printList(L);Delete(L, 4);Delete(L, 5);printList(L);return 0; } 单循环链表函数 typedef struct Node {//定义一个结构体存放data域和指针域int data;//数据域类型struct Node* next; }Node;Node* initList() {//初始化链表Node* L (Node*)malloc(sizeof(Node));L-data 0;L-next L;return L; }void headInsert(Node* L, int data) {//头插法Node* node (Node*)malloc(sizeof(Node));node-data data;node-next L-next;L-next node; }void tailInsert(Node* L, int data) {//尾插法Node* n L;Node* node (Node*)malloc(sizeof(Node));node-data data;while (n-next ! L) {n n-next;}node-next L;n-next node; }int Delete(Node* L, int data)//删除 {Node* preNode L;Node* node L-next;while (node ! L){if (node-data data) {//deletepreNode-next node-next;free(node);return true;}preNode node;node node-next;}return false; }void printList(Node* L) {//遍历链表Node* node L-next;while (node ! L) {printf(%d-, node-data);node node-next;}printf(NULL\n); }int main() {Node* L initList();headInsert(L, 1);headInsert(L, 2);headInsert(L, 3);headInsert(L, 4);headInsert(L, 5);tailInsert(L, 6);tailInsert(L, 7);tailInsert(L, 8);tailInsert(L, 9);tailInsert(L, 10);printList(L);Delete(L, 4);Delete(L, 5);printList(L);return 0; }
http://www.hkea.cn/news/14440538/

相关文章:

  • 做数学ppt工具的网站网站建设的会计核算
  • 网站做301有什么用南方数据企业网站管理系统9
  • 城市建设理论研究收录网站网站设计评价
  • 做购物网站写数据库的流程沈阳网站建设制作
  • 大型的PC网站适合vue做吗wordpress+全局设定
  • 网站ftp根目录wordpress联系浮动
  • 免费行情软件网站下载大全网站建设岗位的认知
  • 新手建网站推荐备案网站名称有什么用
  • 游戏网站设计论文ppt一键生成免费版
  • wap 网站 源码hao123上网从这里开始作文
  • 各主流网站做景区宣传江苏做帖子网站
  • dw怎么做网站后台设计网站平台风格
  • html做企业门户网站企业vi设计欣赏
  • 网站设计论文前言移动网站 制作
  • 网站建立的连接不安全门户建设目标
  • 制作网站费用怎么做分录如何用本地视频做网站
  • 医院风格 wordpress360优化大师下载
  • 自己做网站如何月入3k阿里云wordpress菜鸟
  • 大连网站建设腾讯大厦wordpress论坛搭建
  • 在网站怎么做代销使用阿里云部署wordpress
  • 濮阳市做网站河北seo推广公司
  • 网站新域名查询免费开发app平台下载
  • 怎么在百度上创建网站seo整站优化报价
  • 昆明网站建设搜q.479185700微盟微商城电商小程序
  • 房地产集团网站建设方案国内ip地址免费
  • 触屏版网站模板sae wordpress 升级
  • vps网站管理器手机建立一个免费网站
  • 文化网站建设需要的功能全网线报 实时更新
  • 做社交的招聘网站卧龙区网站建设
  • go语言网站开发教程百度网盘登录入口 网页