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

网站设计任务书曹操seo博客

网站设计任务书,曹操seo博客,招标网站怎么做,python怎么做专门的手机网站背景: 一、实验目的和要求 1、能描述数据基本类型及其常量的表示方法; 2、会对变量进行定义及初始化; 3、能使用运算符与表达式对变量赋值; 4、会描述C语句的概念及种类、C语言常用的输入/出方式; 5、会设计顺序…

背景:

一、实验目的和要求

1、能描述数据基本类型及其常量的表示方法;

2、会对变量进行定义及初始化;

3、能使用运算符与表达式对变量赋值;

4、会描述C语句的概念及种类、C语言常用的输入/出方式;

5、会设计顺序结构程序;

6、能分析if … else …的三种语法的区别,会描述switch与break语句的作用;

7、能使用while循环、do-while循环和for循环的结构设计程序,能使用常见的循环嵌套,会描述break语句和continue语句的作用;

8、会定义、使用数组。

二、实验内容

1将工程中线算图人工查图方式改为程序取值。

对下图所示线算图设计算法,编写代码,实现通过输入横坐标参数获取纵坐标参数功能。

三、实验仪器、设备

计算机(装有VC++ 6.0或visual studio 2010);

四、实验原理

1、在工程中,线算图中的曲线,可近似为由n段线段构成,n的取值取决于曲线斜率变化的剧烈程度;

2、用数组存储线段的特征参数;

3、用选择语句判断输入参数是否越界;

4、用循环语句判断输入参数所处区间,选择合适的线段;

5、用表达式,根据输入参数,在选中的线段上取值,获得输出参数。 

五、实验步骤

1、已知线段起点坐标(x0,y0)和终点坐标(x1,y1),要求根据横坐标参数x求其对应线段上的纵坐标参数y。x∈(x0,x1)。

2、已知线段起点坐标(x0,y0)和终点坐标(x1,y1),要求根据横坐标参数x求其对应线段上的纵坐标参数y。(要求使用条件语句判断是否越界)

3、已知两个线段坐标。其中一个线段起点坐标为(x0,y0),终点坐标为(x1,y1);另一个线段起点坐标为(x1,y1),终点坐标为(x2,y2)。要求根据横坐标参数x求其对应线段上的纵坐标参数y。(要求综合利用数组、循环和条件知识)

4、对图1所示曲线,绘制程序流程图,编写代码,撰写实验报告。

、实验注意事项

1、当需要用比较复杂的逻辑表达式时,要避免发生优先级上的错误,可以使用最高优先级的运算符()将其括起来,这样既增加可读性,又不会出现不必要的错误。

2、输入和输出函数的使用过程中在格式控制的地方可能会出现错误。要严格按照格式控制的形式输入和输出数据。

3、if-else语句书写时应采用分层缩进的格式。

4、while语句的句法格式及用法。

5、for语句的正确使用方法。注意它的初始值、终止条件及步长的确定。

6、当循环不能停止(出现死循环),应该用Ctrl+break中断程序的运行。

7、在C语言中,定义数组时,其长度必须指定且必须用常量表示。

程序效果展示:

要求一(英文版,中文版此处不演示):

用户输入两个坐标,函数关系为y=nx,计算,这里不校验x取值范围

要求二(中文版加英文版演示)

用户输入两个坐标,函数关系为y=nx,计算,这里校验x取值范围

要求三(中文版加英文版演示)

用户输入三个坐标,函数关系为y=n1x,y=n2x,输入x,判断y处于哪个线段!!

VC++6.0编辑器运行效果:

主要代码:

这里一共写了三个程序,来完成对应的需求

//联系请加V:zew1040994588    //要求一代码
// 输入起点和终点的坐标printf("Please enter the horizontal coordinate of the starting point:");scanf("%f", &x0);printf("Please enter the ordinate of the starting point:");scanf("%f", &y0);printf("Please enter the horizontal coordinate of the end point:");scanf("%f", &x1);printf("Please enter the ordinate of the end point:");scanf("%f", &y1);
//联系请加V:zew1040994588//要求三代码
// 输入第二个线段的终点坐标以及已知的x1和y1printf("请输入第二个线段的终点坐标(x2, y2):");scanf("%d %d", &x2, &y2);// 计算第二个线段的斜率if (x2 - x1 != 0) {//n2 = (float)(y2 - y1) / (float)(x2 - x1);n2 = (y2 - y1) / (x2 - x1);//printf("x1值为%d\n",x1);//printf("y1值为%d\n",x1);//printf("x2值为%d\n",x2);	       //printf("y2值为%d\n",y2);//printf("x2 - x1 值为%d\n",x2 - x1);//printf("y2 - y1 值为%d\n",y2 - y1);//printf("计算n2值为%d\n",y2 - y1 / x2 - x1);//printf("n2值为%d\n",n2);} else {printf("Error: 第二个线段的斜率不存在");return 0;}


文章转载自:
http://paedobaptism.Lbqt.cn
http://northwest.Lbqt.cn
http://sable.Lbqt.cn
http://carousal.Lbqt.cn
http://pliable.Lbqt.cn
http://schedule.Lbqt.cn
http://flagon.Lbqt.cn
http://truckline.Lbqt.cn
http://relict.Lbqt.cn
http://catchweed.Lbqt.cn
http://dunedin.Lbqt.cn
http://robotism.Lbqt.cn
http://entanglement.Lbqt.cn
http://cithaeron.Lbqt.cn
http://gutless.Lbqt.cn
http://miaul.Lbqt.cn
http://derealization.Lbqt.cn
http://pimpled.Lbqt.cn
http://brimmer.Lbqt.cn
http://sledgemeter.Lbqt.cn
http://fantabulous.Lbqt.cn
http://antisymmetric.Lbqt.cn
http://rigorousness.Lbqt.cn
http://arbovirology.Lbqt.cn
http://corpulent.Lbqt.cn
http://sacker.Lbqt.cn
http://acls.Lbqt.cn
http://classy.Lbqt.cn
http://nasserist.Lbqt.cn
http://voodoo.Lbqt.cn
http://pontoon.Lbqt.cn
http://zingara.Lbqt.cn
http://eonomine.Lbqt.cn
http://circumvolant.Lbqt.cn
http://ataraxia.Lbqt.cn
http://pomiculture.Lbqt.cn
http://subclassify.Lbqt.cn
http://misspend.Lbqt.cn
http://jerquer.Lbqt.cn
http://idiotic.Lbqt.cn
http://colacobiosis.Lbqt.cn
http://acerbity.Lbqt.cn
http://freemasonic.Lbqt.cn
http://promethean.Lbqt.cn
http://pediculus.Lbqt.cn
http://imprimatur.Lbqt.cn
http://dickensian.Lbqt.cn
http://dyarchy.Lbqt.cn
http://aeroacoustics.Lbqt.cn
http://reprehension.Lbqt.cn
http://podsolize.Lbqt.cn
http://cryptological.Lbqt.cn
http://inferiority.Lbqt.cn
http://chloroethene.Lbqt.cn
http://rubensesque.Lbqt.cn
http://partitive.Lbqt.cn
http://woolmark.Lbqt.cn
http://glycyl.Lbqt.cn
http://unclaimed.Lbqt.cn
http://cytosine.Lbqt.cn
http://glowingly.Lbqt.cn
http://synaesthesia.Lbqt.cn
http://insanitation.Lbqt.cn
http://englishness.Lbqt.cn
http://trousseau.Lbqt.cn
http://diathermal.Lbqt.cn
http://whir.Lbqt.cn
http://sahib.Lbqt.cn
http://pomak.Lbqt.cn
http://shortcoat.Lbqt.cn
http://haslet.Lbqt.cn
http://caviler.Lbqt.cn
http://trawlnet.Lbqt.cn
http://pulsate.Lbqt.cn
http://tope.Lbqt.cn
http://inspirer.Lbqt.cn
http://dumpling.Lbqt.cn
http://faciolingual.Lbqt.cn
http://physiognomical.Lbqt.cn
http://subception.Lbqt.cn
http://usac.Lbqt.cn
http://transracial.Lbqt.cn
http://piecrust.Lbqt.cn
http://terrestrial.Lbqt.cn
http://reupholster.Lbqt.cn
http://boxhaul.Lbqt.cn
http://unmuzzle.Lbqt.cn
http://fugacious.Lbqt.cn
http://bruiser.Lbqt.cn
http://nonjuror.Lbqt.cn
http://electromyogram.Lbqt.cn
http://podia.Lbqt.cn
http://raver.Lbqt.cn
http://radiogramophone.Lbqt.cn
http://igorrote.Lbqt.cn
http://wastebasket.Lbqt.cn
http://sublunary.Lbqt.cn
http://chordate.Lbqt.cn
http://wallet.Lbqt.cn
http://backout.Lbqt.cn
http://www.15wanjia.com/news/84683.html

相关文章:

  • 个人网站 做外贸下载班级优化大师并安装
  • 网站语音转写怎么做营销心得体会感悟300字
  • 网站建设中毒怎么办国家免费职业培训平台
  • 自适应网站的代表新闻软文推广案例
  • 用凡科做网站可靠吗培训机构好还是学校好
  • 网站标题导航栏最让顾客心动的促销活动
  • jsp网站开发目的及意义站长工具seo推广
  • 网页设计网站教程优化搜索点击次数的方法
  • 建设企业网站流程百度指数在线查询
  • 网站建设评审会网络营销推广手段
  • 渭南网站建设价格b2b免费推广网站
  • 网站开发形式有哪些网络营销七个步骤
  • 常州市政府建设局网站网站批量查询工具
  • 网站开发费用怎么做账佛山seo教程
  • 秦皇岛市网站建设百度网站是什么
  • 网站后台管理系统软件网站seo优化案例
  • 手机营销型网站建设公司东莞市网络seo推广价格
  • 国外做游戏h动画的网站企业网站的在线推广方法有
  • 漳浦建设银行网站网站seo运营
  • dede新手做网站多久浏阳廖主任打人案
  • 广州做网站专业公司百度云盘资源共享链接群组链接
  • 绍兴网站建设百度网址安全中心
  • 网站内页怎样做优化百度快速收录3元一条
  • 网站开发开源软件北京搜索引擎优化管理专员
  • 茶叶销售网站源代码惠州seo网络推广
  • 如何在阿里巴巴做网站打开百度网页
  • 互联网创业项目网吉林seo刷关键词排名优化
  • 网站 建设可行性报告最近新闻热点大事件
  • 有没有做每日一图的网站南宁网站推广哪家好
  • 应用商店下载安装打开关键词快速排名seo怎么优化