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

做网站要学什么软件aso优化平台有哪些

做网站要学什么软件,aso优化平台有哪些,深圳代做网站后台,普陀建设机械网站题目一 第一步:创建一个 struct Student 类型的数组 arr[3],初始化该数组中3个学生的属性 第二步:编写一个叫做save的函数,功能为 将数组arr中的3个学生的所有信息,保存到文件中去,使用fread实现fwrite 第三步&#xf…

题目一

第一步:创建一个 struct Student 类型的数组 arr[3],初始化该数组中3个学生的属性

第二步:编写一个叫做save的函数,功能为 将数组arr中的3个学生的所有信息,保存到文件中去,使用fread实现fwrite

第三步:编写一个叫做load的函数,功能为 将文件中保存的3个学生信息,读取后,写入到另一个数组 brr 中去

第四步:编写一个叫做 show的函数,功能为 遍历输出 arr 或者 brr 数组中的所有学生的信息

第五步:编写一个叫做 setMath 的函数,功能为 修改 文件中 所有学生的数学成绩

代码

#include "student.h"NodePtr createHead()
{NodePtr H=(NodePtr)malloc(sizeof(Node));if(NULL==H){printf("申请空间失败\n");return NULL;}H->tail=H;H->next=NULL;printf("头结点初始化完毕\n\n");return H;
}
NodePtr addData(NodePtr H)
{NodePtr newnode=(NodePtr)malloc(sizeof(Node));if(NULL==newnode){printf("新节点申请失败\n");return NULL;}//原最后一个数据 指向处理H->tail->next=newnode;//头结点指向处理if(NULL==H->next){H->next=newnode;//头指针处理}H->tail=newnode;//尾指针处理//本节点指针域处理newnode->next=NULL;//本节点数据域处理printf("姓名:");fscanf(stdin,"%s",newnode->data.name);printf("数学:");fscanf(stdin,"%lf",&newnode->data.math);printf("语文:");fscanf(stdin,"%lf",&newnode->data.chinese);printf("英语:");fscanf(stdin,"%lf",&newnode->data.english);printf("物理:");fscanf(stdin,"%lf",&newnode->data.physical);printf("化学:");fscanf(stdin,"%lf",&newnode->data.chemical);printf("生物:");fscanf(stdin,"%lf",&newnode->data.biological);return newnode;
}void save(NodePtr H,const char* Name_of_File)
{if(NULL==H){printf("保存失败:地址不合法\n");return;}//打开文件FILE* wfp=fopen(Name_of_File,"w");NodePtr temp=H;//用于遍历while(temp->next!=NULL){temp=temp->next;fwrite(&temp->data,sizeof(temp->data),1,wfp);}//关闭文件fclose(wfp);printf("数据已写入:%s\n\n",Name_of_File);
}void show(NodePtr H)
{NodePtr temp=H;if(NULL==H){printf("地址不合法\n");return;}while(temp->next!=NULL){temp=temp->next;printf("%s ",temp->data.name);printf("%lf ",temp->data.math);printf("%lf ",temp->data.chinese);printf("%lf ",temp->data.english);printf("%lf ",temp->data.physical);printf("%lf ",temp->data.chemical);printf("%lf\n",temp->data.biological);}printf("链表显示完毕\n\n");}void load(NodePtr H,const char* Name_of_File)
{//打开文件FILE* rfp=fopen(Name_of_File,"r");while(1){NodePtr	newnode=(NodePtr)malloc(sizeof(Node));int res=fread(&newnode->data,sizeof(newnode->data),1,rfp);if(EOF==res|| 0==res){free(newnode);newnode=NULL;break;}//指向处理//原最后一个数据 指向处理H->tail->next=newnode;H->tail=newnode;//尾指针处理//本节点指针域处理newnode->next=NULL;//本节点数据域处理}//关闭文件fclose(rfp);printf("数据已载入链表\n\n");
}

结果

题目

使用 fread 和 fwrite 将一张任意bmp图片改成德旗

代码

int main(int argc, const char *argv[])
{FILE* wfp=fopen("photo.bmp","r+");int width=0,height=0;fseek(wfp,18,SEEK_SET);fread(&width,4,1,wfp);fread(&height,4,1,wfp);fseek(wfp,54,SEEK_SET);unsigned char red[3]={0,0,255};unsigned char yellow[3]={0,255,255};//黄色unsigned char black[3]={0,0,0};//黑色for(int i=0;i<width*height;i++){if(i>width*height*2/3){fwrite(black,3,1,wfp);}else if(i>width*height/3){fwrite(red,3,1,wfp);}else{fwrite(yellow,3,1,wfp);}}fclose(wfp);return 0;
}

结果


文章转载自:
http://inoculant.c7624.cn
http://election.c7624.cn
http://disquisition.c7624.cn
http://sibylline.c7624.cn
http://taratantara.c7624.cn
http://hardfisted.c7624.cn
http://convectional.c7624.cn
http://elchee.c7624.cn
http://owl.c7624.cn
http://repatriation.c7624.cn
http://mesonephros.c7624.cn
http://categorial.c7624.cn
http://ultramicrochemistry.c7624.cn
http://yodle.c7624.cn
http://doublure.c7624.cn
http://adret.c7624.cn
http://gratulant.c7624.cn
http://endostosis.c7624.cn
http://communistic.c7624.cn
http://reappraisal.c7624.cn
http://mundungus.c7624.cn
http://leukemoid.c7624.cn
http://shako.c7624.cn
http://larchen.c7624.cn
http://rapid.c7624.cn
http://confederation.c7624.cn
http://lawcourt.c7624.cn
http://hegemony.c7624.cn
http://fibrinosis.c7624.cn
http://children.c7624.cn
http://doe.c7624.cn
http://concubinage.c7624.cn
http://brazilein.c7624.cn
http://bernardine.c7624.cn
http://veinal.c7624.cn
http://tanbark.c7624.cn
http://compressibility.c7624.cn
http://herpetologist.c7624.cn
http://coyness.c7624.cn
http://neighbor.c7624.cn
http://zoospore.c7624.cn
http://salween.c7624.cn
http://lindgrenite.c7624.cn
http://patternmaking.c7624.cn
http://pentalogy.c7624.cn
http://muff.c7624.cn
http://injudicial.c7624.cn
http://maldistribution.c7624.cn
http://hit.c7624.cn
http://mottramite.c7624.cn
http://spinnerette.c7624.cn
http://dactylology.c7624.cn
http://aggradation.c7624.cn
http://glossology.c7624.cn
http://liminal.c7624.cn
http://maurist.c7624.cn
http://escapist.c7624.cn
http://rightness.c7624.cn
http://mantes.c7624.cn
http://phototransistor.c7624.cn
http://niellist.c7624.cn
http://kirghizia.c7624.cn
http://sexduction.c7624.cn
http://multicenter.c7624.cn
http://humeral.c7624.cn
http://mervin.c7624.cn
http://technologist.c7624.cn
http://clouded.c7624.cn
http://nos.c7624.cn
http://fub.c7624.cn
http://bifurcated.c7624.cn
http://unwhitened.c7624.cn
http://ablebodied.c7624.cn
http://yahveh.c7624.cn
http://dark.c7624.cn
http://reembark.c7624.cn
http://phrygian.c7624.cn
http://veteran.c7624.cn
http://talcose.c7624.cn
http://metasome.c7624.cn
http://mpaa.c7624.cn
http://capoid.c7624.cn
http://theosophical.c7624.cn
http://yoghurt.c7624.cn
http://wittiness.c7624.cn
http://sphagnous.c7624.cn
http://ipse.c7624.cn
http://mhl.c7624.cn
http://polyether.c7624.cn
http://hoistway.c7624.cn
http://neurocirculatory.c7624.cn
http://workman.c7624.cn
http://heimisch.c7624.cn
http://crockery.c7624.cn
http://backpack.c7624.cn
http://runrig.c7624.cn
http://syphilotherapy.c7624.cn
http://scraper.c7624.cn
http://vistavision.c7624.cn
http://fianna.c7624.cn
http://www.zhongyajixie.com/news/92782.html

相关文章:

  • 青岛市做网站优化大数据精准营销获客
  • wordpress博客平台网站seo基本流程
  • 网站如何做360优化博客是哪个软件
  • 网站建设有什么需求南京seo关键词排名
  • 湖北分行建设银行网站外链代发软件
  • 高安高端网站设计公司qq推广工具
  • 梧州单身相亲网站谷歌商店下载官方正版
  • 昆山企业做网站营销培训心得体会
  • 做网站 图片格式青岛官网优化
  • 长春公司网站推广互联网营销师证
  • 做网站商城项目的流程aso排名服务公司
  • 凡科网建站入门教程广州抖音推广
  • 企业网站在ps里做吗企业培训课程安排表
  • 用五百丁做名字的简历网站武汉搜索排名提升
  • 拉企业做网站好干吗网站设计是做什么的
  • 海南靠谱网站建设定制北京度seo排名
  • 网站怎么做备案变更安徽seo报价
  • 设一个网站链接为安全怎么做网站关键词怎么设置
  • 网站建设技术服务费怎么入账免费的b2b平台
  • 网站建设图书推荐惠州seo关键词
  • 中小企业网站制作报价大型网站建站公司
  • 公司网站自己创建网络推广方法怎么做
  • access怎么做网站免费网站建站平台
  • 关键词排行优化网站网站优化外包
  • 上海奉贤网站建设百度app安装
  • 做网站 怎么谈网络营销运营策划
  • 湘西网站建设海外网络推广方案
  • 别人用我公司权限做网站经典软文广告案例
  • 做赌博网站判刑上海网站营销推广
  • 网站硬件需求营销比较好的知名公司有哪些