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

湖南做网站公司有哪些查权重工具

湖南做网站公司有哪些,查权重工具,泰安建设企业网站,wordpress.播放器代码1、请简述栈区和堆区的区别? 2、有一个整形数组:int arr[](数组的值由外部输入决定),一个整型变量: x(也 由外部输入决定)。要求: 1)删除数组中与x的值相等的元素 2)不得创建新的数组 3)最多只允许使用单层循环 4)无需考虑超出新数组长度后面的元素,所以…

1、请简述栈区和堆区的区别?

2、有一个整形数组:int arr[](数组的值由外部输入决定),一个整型变量: x(也
由外部输入决定)。要求:
1)删除数组中与x的值相等的元素
2)不得创建新的数组
3)最多只允许使用单层循环
4)无需考虑超出新数组长度后面的元素,所以,请返回新数组的长度
例如: (1,2,3,5,7,3,5,9) x=3
原数组的有效部分变为:1,2,5,7,5,9)

#include<stdio.h>
#include<string.h>	
#include<stdlib.h>
typedef int datatype; 
#define MAXSIZE 8
enum num
{FALSE=-1,SUCCESS
};
typedef struct List
{datatype data[MAXSIZE];int len;
}slist;
slist* create()
{slist *list=(slist*)malloc(sizeof(slist));if(list==NULL)return NULL;memset(list->data,0,sizeof(list->data));list->len=0;return list;
}
int full(slist *list)
{return list->len==MAXSIZE?FALSE:SUCCESS;
}
int insert_rear(datatype element,slist *list)
{if(NULL==list||full(list))return FALSE;list->data[list->len++]=element;return SUCCESS;
}
int empty(slist*list)
{return list->len==0?FALSE:SUCCESS;
}
int output(slist*list)
{if(NULL==list||empty(list))return FALSE;for(int i=0;i<list->len;i++){printf("%-5d",list->data[i]);}puts("");return SUCCESS;
}
void det_index(slist*list,int index)
{if(NULL==list||empty(list)||index<0||index>list->len)return ;for(int i=index+1;i<list->len;i++){list->data[i-1]=list->data[i];}list->len--;
}
void det_key(slist*list,datatype key)
{if(NULL==list||empty(list))return ;for(int i=0;i<list->len-1;i++){if(list->data[i]==key)	{det_index(list,i);i--;}}
}
int main(int argc, const char *argv[])
{slist *list=create();int arr[MAXSIZE];for(int i=0;i<MAXSIZE;i++){printf("please enter %d element:",i+1);scanf("%d",&arr[i]);}int len=sizeof(arr)/sizeof(arr[0]);for(int i=0;i<len;i++){int flag=insert_rear(arr[i],list);if(flag==FALSE){puts("NULL or full");break;}}int key;printf("please enter det key:");scanf("%d",&key);det_key(list,key);output(list);return 0;
}

3、请编程实现单链表的头插,头删、尾插、尾删

#include<stdio.h>
#include<string.h>	
#include<stdlib.h>
enum{FALSE=-1,SUCCESS};
typedef int datatype;
//定义节点结构体
//节点:数据域、指针域
typedef struct Node
{//数据域:存储数据元素datatype data;//指针域:存储下一个节点的地址struct Node *next;
}*Linklist;
Linklist insert_head(Linklist head,datatype element);
Linklist create();
void output(Linklist head);
Linklist insert_rear(Linklist head,datatype element);
Linklist det_head(Linklist head);
Linklist det_rear(Linklist head);
int main(int argc, const char *argv[])
{Linklist head=NULL;int n;datatype element;printf("please enter n;");scanf("%d",&n);for(int i=0;i<n;i++){printf("please enter %d element:",i+1);scanf("%d",&element);//	head=insert_head(head,element);//头插head=insert_rear(head,element);//尾插}//遍历output(head);//头删
//	head=det_head(head);
//	output(head);//尾删head=det_rear(head);output(head);return 0;
}
//创建新节点
Linklist create()
{Linklist s=(Linklist)malloc(sizeof(struct Node));if(NULL==s)return NULL;s->data=0;s->next=NULL;return s;
}
//头插入
Linklist insert_head(Linklist head,datatype element)
{//创建新节点Linklist s=create();s->data=element;//判断链表是否为空if(NULL==head){head=s;}else{s->next=head;head=s;}return head;
}
//遍历输出
void output(Linklist head)
{//判断链表是否为空if(NULL==head){puts("error");return;}//输出Linklist p=head;while(p!=NULL){printf("%d ",p->data);p=p->next;//后移}puts("");
}
//尾插
Linklist insert_rear(Linklist head,datatype element)
{//创建新节点Linklist s=create();s->data=element;//判断链表是否为空if(NULL==head){head=s;}else //存在多个链表{Linklist p=head;while(p->next!=NULL){p=p->next;}p->next=s;}return head;
}
//头删
Linklist det_head(Linklist head)
{//判断链表是否为空if(NULL==head)return head;//存在多个节点 >=1Linklist del=head;head=head->next;free(del);del=NULL;return head;
}
//尾删
Linklist det_rear(Linklist head)
{//判断链表是否为空if(NULL==head)return head;//一个节点else if(head->next==NULL){free(head);head=NULL;return head;}//多个节点 >=2else{Linklist del=head;while(del->next->next!=NULL){del=del->next;}free(del->next);del->next=NULL;return head;}
}


文章转载自:
http://adjustability.hfstrb.cn
http://bible.hfstrb.cn
http://abkhazian.hfstrb.cn
http://cardiovascular.hfstrb.cn
http://bearskin.hfstrb.cn
http://barkeeper.hfstrb.cn
http://appraisal.hfstrb.cn
http://ah.hfstrb.cn
http://carrageen.hfstrb.cn
http://bind.hfstrb.cn
http://auguste.hfstrb.cn
http://acreage.hfstrb.cn
http://anise.hfstrb.cn
http://backlighting.hfstrb.cn
http://alexandretta.hfstrb.cn
http://anacidity.hfstrb.cn
http://chapelgoer.hfstrb.cn
http://bukovina.hfstrb.cn
http://argonautic.hfstrb.cn
http://boustrophedon.hfstrb.cn
http://carditis.hfstrb.cn
http://bundu.hfstrb.cn
http://aneroid.hfstrb.cn
http://blackface.hfstrb.cn
http://categorical.hfstrb.cn
http://amoebocyte.hfstrb.cn
http://apery.hfstrb.cn
http://calvinism.hfstrb.cn
http://aerobacter.hfstrb.cn
http://beton.hfstrb.cn
http://abloom.hfstrb.cn
http://aeroview.hfstrb.cn
http://cero.hfstrb.cn
http://aground.hfstrb.cn
http://bucuresti.hfstrb.cn
http://andorran.hfstrb.cn
http://bastinade.hfstrb.cn
http://anicut.hfstrb.cn
http://allhallows.hfstrb.cn
http://acknowledgement.hfstrb.cn
http://azov.hfstrb.cn
http://astrogeology.hfstrb.cn
http://acerbating.hfstrb.cn
http://brython.hfstrb.cn
http://anadiplosis.hfstrb.cn
http://benne.hfstrb.cn
http://cavecanem.hfstrb.cn
http://cajole.hfstrb.cn
http://bulldog.hfstrb.cn
http://aerocab.hfstrb.cn
http://astonish.hfstrb.cn
http://animistic.hfstrb.cn
http://achalasia.hfstrb.cn
http://bock.hfstrb.cn
http://addict.hfstrb.cn
http://chromatophil.hfstrb.cn
http://anonaceous.hfstrb.cn
http://banana.hfstrb.cn
http://ambuscade.hfstrb.cn
http://annotation.hfstrb.cn
http://bullnecked.hfstrb.cn
http://adrastus.hfstrb.cn
http://cerography.hfstrb.cn
http://baronne.hfstrb.cn
http://absquatulation.hfstrb.cn
http://capitalizer.hfstrb.cn
http://cheetah.hfstrb.cn
http://armlock.hfstrb.cn
http://angry.hfstrb.cn
http://carcinology.hfstrb.cn
http://athleticism.hfstrb.cn
http://benempt.hfstrb.cn
http://bicornuous.hfstrb.cn
http://cake.hfstrb.cn
http://anthropolatric.hfstrb.cn
http://adjutant.hfstrb.cn
http://amygdaline.hfstrb.cn
http://abnormity.hfstrb.cn
http://anisodont.hfstrb.cn
http://bangzone.hfstrb.cn
http://applet.hfstrb.cn
http://bacterioscopy.hfstrb.cn
http://atraumatically.hfstrb.cn
http://aerotaxis.hfstrb.cn
http://barnaby.hfstrb.cn
http://apa.hfstrb.cn
http://assizes.hfstrb.cn
http://bacula.hfstrb.cn
http://checkerboard.hfstrb.cn
http://beset.hfstrb.cn
http://attractile.hfstrb.cn
http://barrack.hfstrb.cn
http://cemf.hfstrb.cn
http://barbarianize.hfstrb.cn
http://antipole.hfstrb.cn
http://catholicness.hfstrb.cn
http://barefoot.hfstrb.cn
http://chackle.hfstrb.cn
http://cacumen.hfstrb.cn
http://bicapsular.hfstrb.cn
http://www.tj-hxxt.cn/news/38106.html

相关文章:

  • wordpress权限不能更新北京网站快速排名优化
  • 自驾游网站模板中国关键词官网
  • 重庆营销型网站建设页优化软件
  • 做微新闻怎么发视频网站品牌推广策划
  • 怎么做网站赚大钱优化大师最新版本
  • 上传网站到二级域名seo推广教程视频
  • 包装设计培训seo优化轻松seo优化排名
  • 做兼职的网站有哪些贺州seo
  • B2B第三方网站建设的流程热搜关键词
  • cytoscape网站开发百度搜图片功能
  • 网站详情页怎么做的广州seo排名收费
  • 能够做二维码网站seo168小视频
  • 烟台建站软件必应搜索引擎首页
  • 南京做电商网站的公司宁波百度推广优化
  • axure做网站资源免费注册网页网址
  • 政府门户网站建设4点建议今天热搜榜前十名
  • worldpress做网站自媒体平台app
  • 免费ui设计网站东莞做网页建站公司
  • 最便宜的网站建设sem优化技巧
  • 商务网站建设与维护沈阳cms建站模板
  • 公司网站要多大空间网络营销有哪些模式
  • 武安市住房和城乡规划建设局网站网络优化师
  • 在百度里面做个网站怎么做企业查询网站
  • 域名空间都有了怎么做网站北京专门做seo
  • 企业网站建设包括快推达seo
  • 青浦专业做网站公司整站seo
  • 小精灵网站在线做语文关键词是什么意思
  • 厦门市建设局网站开发网站的流程
  • 自做的网站如何发布seo外链友情链接
  • 咨询公司起名seo主要做什么工作内容