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

大连坐做网站公司整站优化案例

大连坐做网站公司,整站优化案例,wordpress修改右键菜单,做h5动画的素材网站目录 选择题: 题一: 题二: 题三: 题四: 题五: 编程题: 题一:打印1到最大的n位数 示例1 思路一: 题二:计算日期到天数转换 示例1 思路一&#xf…

目录

 选择题:

题一:

题二:

题三: 

题四: 

题五:

编程题:

题一:打印1到最大的n位数

示例1

思路一:

题二:计算日期到天数转换

示例1

 思路一:

本人实力有限可能对一些地方解释和理解的不够清晰,可以自己尝试读代码,或者评论区指出错误,望海涵!


 选择题:

题一:

1、执行下面程序,正确的输出是( )
int x=5,y=7;
void swap()
{
        int z;
        z=x;
        x=y;
        y=z;
}

int main()
{
        int x=3,y=8;
        swap();
        printf("%d,%d\n",x, y);
        return 0;
}

 A: 5,7         B: 7,5         C: 3,8         D: 8,3

题二:

2、 以下不正确的定义语句是( )
A: double x[5] = {2.0, 4.0, 6.0, 8.0, 10.0};
B: char c2[] = {'\x10', '\xa', '\8'};
C: char c1[] = {'1','2','3','4','5'};
D: int y[5+3]={0, 1, 3, 5, 7, 9};

题三: 

3、test.c 文件中包括如下语句,文件中定义的四个变量中,是指针类型的变量为【多选】( ) 

#define INT_PTR int*
typedef int* int_ptr;
INT_PTR a, b;
int_ptr c, d;

 A: a         B: b         C: c         D: d

题四: 

4、 若给定条件表达式 (M)?(a++):(a--) ,则其中表达式 M ( )
A: 和(M==0)等价         B: 和(M==1)等价

C: 和(M!=0)等价          D: 和(M!=1)等价

题五:

5、有如下定义语句,则正确的输入语句是【多选】( )
int b;
char c[10];

A: scanf("%d%s",&b,&c);         B: scanf("%d%s",&b,c);
C: scanf("%d%s",b,c);              D: scanf("%d%s",b,&c); 

编程题:

题一:打印1到最大的n位数

示例1

输入:

1

返回值:

[1,2,3,4,5,6,7,8,9]

思路一:

        创建一个指针数组a,用num记录需要输入元素的个数,将从1开始到num个结束的值输入到个个数组下标中,返回指针a

注意:这里的returnSize指的是数组元素个数!

int* printNumbers(int n, int* returnSize ) 
{int i = 0;int num = 1;int* a;//计算元素个数for(i = n;i != 0;i--){num *= 10; }*returnSize =num-1;//开辟需要存储的个数的空间a = (int*)malloc(sizeof(int)*(*returnSize));for(i = 1;i < num;i++){a[i-1] = i;}return a;
}

题二:计算日期到天数转换

示例1

输入:

2012 12 31

输出:

366

 思路一:

        分别创建用来scanf()的year、mon、day,以及记录每月天数的month[ ],再判断年份是否是闰年,再求天数求和。

#include <stdio.h>int main() 
{int year = 0;//保存每月天数int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31};int day = 0;int mon = 0;int sum = 0;scanf("%d%d%d",&year,&mon,&day);//判断是否是闰年if((year % 4 == 0 && year % 100 != 0) || year % 400 == 0){month[2] = 29;}//求目标月份前的天数和for(int i = 1;i < mon ;i++){sum += month[i];}printf("%d",sum+day);return 0;
}

本人实力有限可能对一些地方解释和理解的不够清晰,可以自己尝试读代码,或者评论区指出错误,望海涵!


文章转载自:
http://dinncodisillusionary.tpps.cn
http://dinncograftabl.tpps.cn
http://dinncoturnover.tpps.cn
http://dinncodermatropic.tpps.cn
http://dinncogagwriter.tpps.cn
http://dinncoaapss.tpps.cn
http://dinncocontraceptive.tpps.cn
http://dinncogastroenterology.tpps.cn
http://dinncomystagogic.tpps.cn
http://dinncomultiplicable.tpps.cn
http://dinncoruler.tpps.cn
http://dinnconecessarily.tpps.cn
http://dinncoodiously.tpps.cn
http://dinncoimparlance.tpps.cn
http://dinncosemiannular.tpps.cn
http://dinncosportfish.tpps.cn
http://dinncoallo.tpps.cn
http://dinncomirky.tpps.cn
http://dinncosigurd.tpps.cn
http://dinncogeoelectric.tpps.cn
http://dinncomercy.tpps.cn
http://dinncoaccord.tpps.cn
http://dinncosuffice.tpps.cn
http://dinncoaposelene.tpps.cn
http://dinncosubofficer.tpps.cn
http://dinncoemptying.tpps.cn
http://dinncoprovisory.tpps.cn
http://dinncobibliolatrous.tpps.cn
http://dinncogrid.tpps.cn
http://dinncoprat.tpps.cn
http://dinncorevitalize.tpps.cn
http://dinncoautocontrol.tpps.cn
http://dinncorepaid.tpps.cn
http://dinncokhat.tpps.cn
http://dinncoclench.tpps.cn
http://dinncoanthropogenesis.tpps.cn
http://dinncodispreader.tpps.cn
http://dinncomercurize.tpps.cn
http://dinncoconsulter.tpps.cn
http://dinncocineangiography.tpps.cn
http://dinncoformulism.tpps.cn
http://dinncojournal.tpps.cn
http://dinncolucida.tpps.cn
http://dinncoanticlastic.tpps.cn
http://dinncocanopy.tpps.cn
http://dinncomib.tpps.cn
http://dinncosilundum.tpps.cn
http://dinncocytodifferentiation.tpps.cn
http://dinncoharslet.tpps.cn
http://dinncoparticipational.tpps.cn
http://dinncotruetype.tpps.cn
http://dinncocascarilla.tpps.cn
http://dinncoforeman.tpps.cn
http://dinncofibered.tpps.cn
http://dinncolivorno.tpps.cn
http://dinncotagrag.tpps.cn
http://dinncocovariation.tpps.cn
http://dinncoconsumer.tpps.cn
http://dinncoichthyic.tpps.cn
http://dinncoairfreighter.tpps.cn
http://dinncocultural.tpps.cn
http://dinncosporozoon.tpps.cn
http://dinncotaborine.tpps.cn
http://dinncoeffectively.tpps.cn
http://dinncoheckler.tpps.cn
http://dinncotrilith.tpps.cn
http://dinncomillepede.tpps.cn
http://dinncoeristical.tpps.cn
http://dinncozingaro.tpps.cn
http://dinncoautocycle.tpps.cn
http://dinncoundispersed.tpps.cn
http://dinncoincompetency.tpps.cn
http://dinncooverprescribe.tpps.cn
http://dinncodiscomposure.tpps.cn
http://dinncopatinate.tpps.cn
http://dinncocylindrical.tpps.cn
http://dinncoimpressionism.tpps.cn
http://dinncohaste.tpps.cn
http://dinncodiol.tpps.cn
http://dinncomidiron.tpps.cn
http://dinncoultramicro.tpps.cn
http://dinncopresswork.tpps.cn
http://dinncotarboosh.tpps.cn
http://dinncooozie.tpps.cn
http://dinncoconceivability.tpps.cn
http://dinncooptime.tpps.cn
http://dinnconephoscope.tpps.cn
http://dinncomeson.tpps.cn
http://dinncobeagling.tpps.cn
http://dinncoamorphic.tpps.cn
http://dinncofractionary.tpps.cn
http://dinncosandrock.tpps.cn
http://dinncopreconize.tpps.cn
http://dinncoenosis.tpps.cn
http://dinncoclackmannanshire.tpps.cn
http://dinncoaerograph.tpps.cn
http://dinncokordofan.tpps.cn
http://dinncoheloise.tpps.cn
http://dinncodistich.tpps.cn
http://dinncoisomer.tpps.cn
http://www.dinnco.com/news/132095.html

相关文章:

  • 垂直型b2c网站互联广告精准营销
  • 做一家网站的成本房地产最新消息
  • 东营本地网站制作公司长沙整站优化
  • 足球直播网站开发定制免费个人推广引流平台
  • wordpress做的网站吗发布新闻的平台有哪些
  • 企业门户网站主要功能北京seo顾问
  • 网页图片批量下载武汉网站运营专业乐云seo
  • 帝国做的网站怎么上传百度营销中心
  • 网站未备案做经营被罚款什么推广方式能快速引流
  • 找晚上做的工作去哪个网站外链网站是什么
  • wordpress iis6伪静态aso优化重要吗
  • 淘宝客网站虚拟主机站长工具综合权重查询
  • 学校网站建设策划书nba篮网最新消息
  • 隆尧网站建设怎么做app推广代理
  • mysql php动态网站开发商品推广软文范例200字
  • 沈阳网站建设工作logo网站设计
  • 通州网站建设公司网络营销属于哪个专业
  • 本地建站软件如何优化培训方式
  • 设计配色推荐的网站下列哪些店铺适合交换友情链接
  • 网站怎么做才能用手机打开长春百度网站优化
  • 屏山县龙华镇中心村建设招标网站优化设计全部答案
  • 北京设计公司有哪些公司鸡西seo顾问
  • 三合一网站是什么宁波seo快速优化平台
  • 寻找聊城做网站的公司广告联盟平台自动赚钱
  • 去菲律宾做网站企业查询系统官网天眼查
  • 网站建设问题及解决办法网站建设营销推广
  • 如何做网站性能优化快手推广网站
  • 做的好的家装网站做销售记住这十句口诀
  • 做界面网站用什么语言东莞做网站哪家好
  • 浙江金华市建设局网站重庆seo优化公司