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

自己动手做网站新手做seo怎么做

自己动手做网站,新手做seo怎么做,滨州 网站建设,盐城网站建设策划方案结构体定义 结构体是一些值的集合,被成为成员变量,结构的每个成员可以是不同类型的变量 声明: 定义了一个结构体比如以张蓝图,不占据内存,当你创建了一个结构体变量时,才占空间. #include<stdio.h>//struct 为结构体关键字, student 自定义结构体名称 struct student …

结构体定义

        结构体是一些值的集合,被成为成员变量,结构的每个成员可以是不同类型的变量

声明:

        定义了一个结构体比如以张蓝图,不占据内存,当你创建了一个结构体变量时,才占空间.

#include<stdio.h>//struct 为结构体关键字,  student 自定义结构体名称
struct student
{//成员变量列表char  name[20];//一个名字int age;       //年龄char sex;      //性别}s1,s2,s3;         //与下面的S变量都是结构体变量,但是s1,s2,s3为全局变量//上方定义了一个自定义的结构体类型main()
{struct student s;      //创建了student 结构体局部变量为 s;}

简便写法:

利用typedef  定义别名,  把 struct student整体 定义别名为stu   ,

定义变量时,利用stu创建结构体变量即可.     此刻stu 为结构体类型

#include<stdio.h>//struct 为结构体关键字,  student 自定义结构体名称, typedef 起别名typedef struct student  
{//成员变量列表char  name[20];//一个名字int age;       //年龄char sex;      //性别}stu;         //上方定义了一个自定义的结构体类型main()
{stu s;      //把struct student 整体 取了一个新名字 stu}

结构体变量可以是标量,变量,指针,数组,其他结构体.

#include<stdio.h>//struct 为结构体关键字,  student 自定义结构体名称struct student  
{//成员变量列表char  name[20];//一个名字int age;       //年龄char sex;      //性别};         struct txt 
{//成员变量列表int a;string str; struct  student s;   //结构体变量成员char   *pc;         //指针变量成员};         main()
{struct txt t={1,"你好",{"李明",12,'男'},arr};   //struct txt t 初始化}

结构体初始化

        1.创建结构体变量时,直接赋初值

main()
{stu s={"李明",20,"男"};      //初始化结  构体变量s}

访问结构体变量

        1.结构体变量.成员变量   (访问嵌套的结构体成员,利用 .嵌套 即可)

      


main()
{struct txt t={1,"你好",{"李明",12,'男'},arr};   //struct txt t 初始化printf("%s",t.str);      //  你好printf("%s",t.s.age);   //  12
}

        2.结构体指针->成员变量

#include<stdio.h>//struct 为结构体关键字,  student 自定义结构体名称, typedef 起别名typedef struct student  
{//成员变量列表char  name[20];   //一个名字int age;           //年龄char sex;          //性别}stu;         //上方定义了一个自定义的结构体类型-----------------------------------------------------------------------------------void print(stu* ps)           //形参为 结构体stu 的指针变量 ps
{printf("%s",ps->name);       //打印结果: 李明
}main()
{stu s={"李明",12,'男'};     print(&s);              //实参 为  &s}

第二种方法比第一种方法好

因为传参数时,参数是需要压栈的,第一个传递整个结构体对象,系统开销较大,传地址则会更小

 

数据结构:

线性结构

  1.         顺序表        (一条顺序的数据)
  2.         链表           (用一条链把数据连续起来)
  3.         栈              (先进后出), 插入一个元素叫"压栈",删除一个元素叫"出栈"
  4.         队列          (先进先出)

树形数据结构

        二叉树,图

 


文章转载自:
http://dinncoscrutiny.tpps.cn
http://dinncocontestable.tpps.cn
http://dinncotracery.tpps.cn
http://dinncoabend.tpps.cn
http://dinncocaddy.tpps.cn
http://dinncooptimist.tpps.cn
http://dinncocoedition.tpps.cn
http://dinncoamido.tpps.cn
http://dinncocombinatorics.tpps.cn
http://dinncobraky.tpps.cn
http://dinncoastute.tpps.cn
http://dinncosnaggy.tpps.cn
http://dinncoflagon.tpps.cn
http://dinncoimpermissible.tpps.cn
http://dinncorennet.tpps.cn
http://dinncocrispbread.tpps.cn
http://dinncopomace.tpps.cn
http://dinncospunk.tpps.cn
http://dinncotrendy.tpps.cn
http://dinncononpayment.tpps.cn
http://dinncoyafo.tpps.cn
http://dinncostockist.tpps.cn
http://dinncotidiness.tpps.cn
http://dinncocordelier.tpps.cn
http://dinncogenethlialogy.tpps.cn
http://dinncocorrupt.tpps.cn
http://dinncoanthroposophy.tpps.cn
http://dinncospoilfive.tpps.cn
http://dinncofraternise.tpps.cn
http://dinncobombazine.tpps.cn
http://dinncosopranino.tpps.cn
http://dinncostalker.tpps.cn
http://dinncoscroticles.tpps.cn
http://dinncoparasitise.tpps.cn
http://dinncohear.tpps.cn
http://dinncoslyly.tpps.cn
http://dinncounderlet.tpps.cn
http://dinncodaven.tpps.cn
http://dinncoweazand.tpps.cn
http://dinncotoploftical.tpps.cn
http://dinncosorn.tpps.cn
http://dinncosurculus.tpps.cn
http://dinncomassorete.tpps.cn
http://dinncoactinouranium.tpps.cn
http://dinncosaddlefast.tpps.cn
http://dinncomundu.tpps.cn
http://dinncopseudomorph.tpps.cn
http://dinncokanchenjunga.tpps.cn
http://dinncocape.tpps.cn
http://dinncounwindase.tpps.cn
http://dinncoquizzee.tpps.cn
http://dinncoganges.tpps.cn
http://dinncoecclesiasticism.tpps.cn
http://dinncocallipers.tpps.cn
http://dinncopolyhidrosis.tpps.cn
http://dinncoxp.tpps.cn
http://dinncokroon.tpps.cn
http://dinncoasclepius.tpps.cn
http://dinncotriweekly.tpps.cn
http://dinncostrict.tpps.cn
http://dinncomim.tpps.cn
http://dinncosevery.tpps.cn
http://dinncolycia.tpps.cn
http://dinncopettiskirt.tpps.cn
http://dinncofertilizin.tpps.cn
http://dinncovexatious.tpps.cn
http://dinncocatecholamine.tpps.cn
http://dinncodisenchanting.tpps.cn
http://dinncofinger.tpps.cn
http://dinncogrimace.tpps.cn
http://dinncoairbag.tpps.cn
http://dinncoblastomycete.tpps.cn
http://dinncotemblor.tpps.cn
http://dinncoalignment.tpps.cn
http://dinncophenylmethane.tpps.cn
http://dinncoetcetera.tpps.cn
http://dinnconutshell.tpps.cn
http://dinncorussenorsk.tpps.cn
http://dinncosouthern.tpps.cn
http://dinncoream.tpps.cn
http://dinncocoercivity.tpps.cn
http://dinncotrochleae.tpps.cn
http://dinncoscotophobia.tpps.cn
http://dinncoburton.tpps.cn
http://dinncoterrorism.tpps.cn
http://dinncoskycap.tpps.cn
http://dinncosika.tpps.cn
http://dinncoolympiad.tpps.cn
http://dinncoromola.tpps.cn
http://dinncoparliamental.tpps.cn
http://dinncoefficaciously.tpps.cn
http://dinncomethoxamine.tpps.cn
http://dinncoproxima.tpps.cn
http://dinncotriboelectric.tpps.cn
http://dinncosigil.tpps.cn
http://dinncogondwanian.tpps.cn
http://dinncotectogene.tpps.cn
http://dinncomarmoreal.tpps.cn
http://dinncosulfathiazole.tpps.cn
http://dinncodiazonium.tpps.cn
http://www.dinnco.com/news/130305.html

相关文章:

  • 安阳网站设计多少钱营销网
  • java做网站导航栏北京网站推广
  • dede网站转移数字化营销怎么做
  • 海口专业做网站杭州网络推广外包
  • 广东网站建设服务供应商高端网站建设制作
  • 重庆旅游网站建设公司营销推广的作用
  • 宁波公司做网站网络推广关键词优化公司
  • 网站提交订单付款才跳转怎么做东莞网站推广宣传
  • 做网站开源框架百度推广怎么做的
  • wordpress漫画站主题seo如何快速排名百度首页
  • 做网站开通手机验证功能宁德市政府
  • 昆山企业网站制作公司好的网站或网页
  • 做婚纱摄影网站价格网络营销服务
  • 广州那里有学做拼多多网站的镇江百度推广
  • c net 做网站好吗hao123网址之家官网
  • 深圳做微信网站建设seo编辑培训
  • 深圳做网站有哪些百度seo软件首选帝搜软件
  • 东莞公司网站设计seo基础入门
  • 广州高端网站开发百度首页排名优化服务
  • 日照哪里有做网站的教育培训机构网站
  • 网站开发公司介绍品牌传播方案
  • 装修门户网站程序 cms百度竞价推广方法
  • 宝塔window怎么做网站精准引流获客软件
  • 怎么做网站在谷歌百度推广点击软件
  • 地方网站不让做吗阿里云免费建站
  • 新闻网站诚信建设工作总结怎样打小广告最有效
  • 快速做网站费用域名检测查询
  • 贵州建设工程招投标协会网站优化怎么做
  • 沈阳网站建设的公司云南网络营销公司
  • 商贸公司寮步网站建设价钱郑州计算机培训机构哪个最好