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

微信网站后期运营怎么做com域名需要备案吗

微信网站后期运营怎么做,com域名需要备案吗,深圳关键词优化怎么样,授权购买网站一.前言 嗨嗨嗨#xff0c;又和大家见面了#xff01;前面我们讲到了如何实现一个循序表。现在我们开始讲解如何基于循序表来实现通讯录功能。 二.正文 通讯录中的SeqlList.h #pragma once //#define SLDateType int #includestdio.h #includestdlib.h #…一.前言 嗨嗨嗨又和大家见面了前面我们讲到了如何实现一个循序表。现在我们开始讲解如何基于循序表来实现通讯录功能。 二.正文 通讯录中的SeqlList.h #pragma once //#define SLDateType int #includestdio.h #includestdlib.h #includeassert.h #includeContact.h typedef PerInfo SLDateType;//通讯录中SeqList.h与顺序表中SeqList.h的区别只是在通讯录中将int换成了结构体PerInfo typedef struct SeqList {SLDateType* arr;int size;int capacity; }SL; void SLInit();//循序表的初始化 void SLDestroy();//顺序表的销毁 void SLPushBack();//尾部插入 void SLPushFront();//头部插入 void SLPopBack();//尾部删除 void SLPopFront();//头部删除 void SLInsert();//指定位置插入 void SLErase();//指定位置删除 int SLFind();//查找数据 通讯录中的Contact.h #pragma once #define NAME_MAX 20 #define GENDER_MAX 20 #define TEL_MAX 20 #define ADDR_MAX 20 typedef struct PersonInfo {char name[NAME_MAX];char gender[GENDER_MAX];int age;char tel[TEL_MAX];char addr[ADDR_MAX]; }PerInfo; typedef struct SeqList Contact; void ContactInit(Contact* con);//通讯录的初始化 void ContactDestroy();//通讯录的销毁 void ContactAdd();//通讯录添加数据 void ContactDel();//通讯录删除数据 void ContactModify();//通讯录修改数据 int ContactFind();//通讯录查找数据 void ContactShow();//通讯录展示数据 通讯录中的SeqList.c #includeSeqList.h void SLInit(SL* ps)//循序表的初始化函数的实现 {ps-arr NULL;ps-size ps-capacity 0; } void SLDestroy(SL* ps)//顺序表销毁的函数实现 {if ((ps-arr) ! NULL){free(ps-arr);}ps-arr NULL;ps-size ps-capacity 0; } void SLCheckCapacity(SL* ps) {if (ps-capacity ps-size){int NewCapacity ps-capacity 0 ? 6 : 2 * ps-capacity;SLDateType* tmp (SLDateType*)realloc(ps-arr, NewCapacity * sizeof(SLDateType));if (tmp NULL){perror(realloc faile!);return ;}ps-arr tmp;ps-capacity NewCapacity;}} //void SLPrint(SL* ps) //{ // for (int i 0; i ps-size; i) // { // printf(%d , ps-arr[i]); // } // printf(\n); //} //void SLPrint(SL s) //{ // for (int i 0; i s .size; i) // { // printf(%d , s.arr[i]); // } // printf(\n); //} void SLPushBack(SL* ps, SLDateType x)//尾插函数的实现 {assert(ps);SLCheckCapacity(ps);ps-arr[ps-size] x;ps-size; } void SLPushFront(SL* ps, SLDateType x)//头插函数的实现 {assert(ps);SLCheckCapacity(ps);for (int i ps-size; i 0; i--){ps-arr[i] ps-arr[i - 1];}ps-arr[0] x;ps-size; } void SLPopBack(SL* ps)//尾删函数的实现 {assert(ps);assert(ps-size);ps-size--; } void SLPopFront(SL* ps)//头删函数的实现 {for (int i 0; i (ps-size) - 1; i){ps-arr[i] ps-arr[i 1];}ps-size--; } void SLInsert(SL* ps, int pos, SLDateType x)//指定位置的插入 {assert(ps);assert(pos 0 pos ps-size);SLCheckCapacity(ps);for (int i ps-size; i pos 1; i--){ps-arr[i] ps-arr[i - 1];}ps-arr[pos] x;ps-size; } void SLErase(SL* ps, int pos) {assert(ps);assert(pos 0 pos ps-size);for (int i pos; i ps-size - 2; i){ps-arr[i] ps-arr[i 1];}ps-size--; } //int SLFind(SL* ps, SLDateType x) //{ // assert(ps); // for (int i 0; i ps- size; i) // { // if (ps-arr[i] x) // { // return i; // } // } // return -1; //} 通讯录中的Contact.c #define _CRT_SECURE_NO_WARNINGS #includeSeqList.h #includeSeqList.h #includeContact.h #includestring.h void ContactInit(Contact* con) {SLInit(con);} void ContactDestroy(Contact* con) {SLDestroy(con); }void ContactAdd(Contact* con) {PerInfo pf;printf(请输入用户的姓名\n);scanf(%s, pf.name);printf(请输入用户的性别\n);scanf(%s, pf.gender);printf(请输入用户的年龄\n);scanf(%d, pf.age);printf(请输入用户的电话\n);scanf(%s, pf.tel);printf(请输入用户的地址\n);scanf(%s, pf.addr);SLPushBack(con, pf); }int ContactFind(Contact* con,char name[]){for (int i 0; i con-size; i){if (0strcmp(con-arr[i].name, name)){return i;}}return -1;}void ContactDel(Contact* con){char name[NAME_MAX];printf(请输入你要删除的联系人姓名\n);scanf(%s, name);int find ContactFind(con, name);if (find 0){printf(没有找到该联系人\n);ContactShow(con);return;}else{SLErase(con, find);printf(删除成功\n);return;}}void ContactShow(Contact* con){printf(姓名 );printf(性别 );printf(年龄 );printf(电话 );printf(地址 );printf(\n);for (int i 0; i con-size; i){printf(%s ,con-arr[i].name);printf(%s , con-arr[i].gender);printf(%d , con-arr[i].age);printf(%s , con-arr[i].tel);printf(%s , con-arr[i].addr);printf(\n);}}void ContactModify(Contact* con){char name[NAME_MAX];printf(输入要修改人姓名\n);scanf(%s, name);int find ContactFind(con, name);if (find 0){printf(要修改的联系人数据不存在\n);ContactShow(con);return;}//直接修改printf(请输入新的姓名\n);scanf(%s, con-arr[find].name);printf(请输入新的性别\n);scanf(%s, con-arr[find].gender);printf(请输入新的年龄\n);scanf(%d, con-arr[find].age);printf(请输入新的电话\n);scanf(%s, con-arr[find].tel);printf(请输入新的住址\n);scanf(%s, con-arr[find].addr);printf(修改成功\n);} 测试通讯录功能test.c //#define _CRT_SECURE_NO_WARNINGS #includeSeqList.h #includeContact.h int main() {//SL sl;//SLInit(sl);//SLPushBack(sl, 0);//SLPushBack(sl, 1);//SLPushBack(sl, 2);//SLPushBack(sl, 3);//SLPushFront(sl, 3); // SLPushFront(sl, 4);//SLPopBack(sl); // SLPopFront(sl);// SLInsert(sl, 3, 99);//SLErase(sl, 1);/*SLFind(sl, 2);SLPrint(sl);int find SLFind(sl, 2);if (find 0){printf(没有找到\n);}else{printf(找到了该数据下标是%d\n, find);}*/Contact Con;ContactInit(Con);ContactAdd(Con);ContactAdd(Con);//ContactShow(Con);ContactDel(Con);ContactDestroy(Con);return 0; } 三.结言 今天的分享结束下次再见了同学们
http://www.hkea.cn/news/14320340/

相关文章:

  • 如何查看网站是否备案石家庄企业招聘信息网
  • 建设专业网站哪家比较好Wordpress 删除nginx
  • 孝感网站开发培训机构ktv网络推广方案
  • 百度如何网站为什么网站收录下降
  • 深圳网站建设公司招聘电话销售海南万宁市
  • 简单扁平化风格后台网站模板阜阳html5网站建设
  • 企业网站功能包括做百度推广设置网站统计
  • 邹平网站建设公司小程序项目描述怎么写
  • 网站运营做内容出口网站有哪些
  • 免费做ppt的网站做广告的软件app
  • 专业网站建设企业网站制作网站如何收费
  • 建设网站那家公司好全球排行前50网站开发语言
  • 用手机做电影网站网站推广的重要性
  • 做公司+网站建设价格低石家庄网站建设平台
  • wordpress网站安装插件东营建设企业网站
  • 海口网站建设好网站突然打不开了
  • iis 网站权限wordpress 随机点击数
  • 网站型跟商城型天津房地产集团网站建设
  • 本地网站模版批量修改网站字符杭州建站模板搭建
  • 石景山成都网站建设小程序制作
  • 怎么写网站规划方案如何将自己做的网站发布
  • 用什么搭建个人网站windows10系统优化
  • 江门营销网站建设建设一个营销型网站
  • 做电商网站费用大型购物网站服务器
  • adsl 网站服务器wordpress 查询参数
  • 服装辅料东莞网站建设青岛公司logo设计
  • 番禺制作网站设计网站 公司
  • 企业做网站需要准备什么资料石家庄专业网站营销
  • 青岛网站设计企业中建西部建设西南有限公司网站
  • 南京自助建站展厅平面设计