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

企业做网站的好处有哪些时事新闻热点摘抄

企业做网站的好处有哪些,时事新闻热点摘抄,电话销售外呼软件,枣庄网站制作公司Q565.(10分数, 语言: C)程序中函数 fun()的功能: 将一个由八进制数字字符组成的字符串转换为与其值相等的十进制整数。规定输入的字符串最多只能包含5位八进制数字字符。 **输入格式要求:gets 提示信息:"输入一个八进制字符串(5位&…
Q565.(10分数, 语言: C)程序中函数 fun()的功能: 将一个由八进制数字字符组成的字符串转换为与其值相等的十进制整数。规定输入的字符串最多只能包含5位八进制数字字符。
**输入格式要求:gets   提示信息:"输入一个八进制字符串(5位):" "错误:字符串太长\n\n" "错误:%c 不是一个八进制字符\n\n"
**输出格式要求:"输入的八进制字符串为" "\n%s 转换成十进制整数为:%d\n"
程序运行示例如下:
输入一个八进制字符串(5位):234
输入的八进制字符串为234
234 转换成十进制整数为:156、
#include <stdio.h>
#include <string.h>
#define N 10
void fun(char a[]);
main()
{char a[N];printf("输入一个八进制字符串(5位):");gets(a);if (strlen(a) > 5){printf("错误:字符串太长\n\n");exit(0);}else{printf("输入的八进制字符串为");puts(a);}fun(a);}
void fun(char a[])
{int b[5] = {1, 8, 64, 512, 4096};int sum = 0;int j = strlen(a);for (int i = 0; a[i] != '\0'; i++){if (a[i] >= '8' || a[i] < '0'){printf("错误:%c 不是一个八进制字符\n\n", a[i]);return ;}else{sum += (a[i] - '0') * b[j - i - 1];}}printf("\n%s 转换成十进制整数为:%d\n", a, sum);
}


Q1323.(10分数, 语言: C)写一函数,输入一个十六进制数,输出相应的十进制数。
程序的运行示例如下:
输入十六进制数:
3a
十进制数58
继续吗?
y
输入十六进制数:
2f
十进制数47
继续吗?
n
#include <stdio.h>
#include <string.h>
#define N 6
main(){char flag;char a[N]={'\0'};do{printf("输入十六进制数:\n");gets(a);int x = fun(a);printf("十进制数%d\n",x);printf("继续吗?\n");flag = getchar();getchar();}while(flag=='Y'||flag == 'y');}int fun(char a[]){int sum=0;int j=strlen(a);int b[4] = {1,16,16*16,16*16*16};for(int i=0;a[i]!='\0';i++){if(a[i]>='0'&&a[i]<='9'){sum += (a[i]-'0')*b[j-i-1];}else if(a[i]>='a'&&a[i]<='z'){sum += (10+(a[i]-'a'))*b[j-i-1];}}return sum;
}

(10+(a[i]-'a'))别忘了加10


Q3487.(10分数, 语言: C)对输入的8个字符串(每个字符串长度不超过20)按照字典顺序进行排序并输出。不限定排序方法,不能使用goto语句。
输入输出格式:
输入:%s
输出:%s\n输入:多个字符串用空格分隔
输出:排序好的字符串,每行一个字符串,末尾有空行。输入输出样例:
输入:
diankuang liuxu sui fengwu qingbo taohua zhu shuiliu
输出:
diankuang
fengwu
liuxu
qingbo
shuiliu
sui
taohua
zhu
#include <stdio.h>
#include <string.h>
#define N 20
void main()
{char a[8][N], term[20];for (int i = 0; i < 8; i++){scanf("%s", a[i]);}for (int i = 0; i < 7; i++){for (int j = 1; j < 8-i ; j++){if (strcmp(a[j], a[j - 1]) < 0){strcpy(term, a[j]);strcpy(a[j], a[j - 1]);strcpy(a[j - 1], term);}}}for (int i = 0; i < 8; i++){printf("%s\n", a[i]);}
}


文章转载自:
http://destructively.xsfg.cn
http://sesquipedal.xsfg.cn
http://execration.xsfg.cn
http://barratry.xsfg.cn
http://oropharyngeal.xsfg.cn
http://galvanothermy.xsfg.cn
http://regretless.xsfg.cn
http://trichomonal.xsfg.cn
http://felicitousness.xsfg.cn
http://slumberland.xsfg.cn
http://glossarist.xsfg.cn
http://pyrimethamine.xsfg.cn
http://whew.xsfg.cn
http://androdioecious.xsfg.cn
http://remindful.xsfg.cn
http://kinaesthesia.xsfg.cn
http://mitten.xsfg.cn
http://icam.xsfg.cn
http://warthog.xsfg.cn
http://lecher.xsfg.cn
http://rgg.xsfg.cn
http://abri.xsfg.cn
http://mammectomy.xsfg.cn
http://ragpicker.xsfg.cn
http://insufficience.xsfg.cn
http://myelogenic.xsfg.cn
http://visitant.xsfg.cn
http://hypopituitarism.xsfg.cn
http://sunfish.xsfg.cn
http://resurgent.xsfg.cn
http://glassblower.xsfg.cn
http://forasmuch.xsfg.cn
http://fanon.xsfg.cn
http://coi.xsfg.cn
http://elisha.xsfg.cn
http://inviolateness.xsfg.cn
http://nasturtium.xsfg.cn
http://secularist.xsfg.cn
http://biliteral.xsfg.cn
http://benioff.xsfg.cn
http://cropless.xsfg.cn
http://raia.xsfg.cn
http://charity.xsfg.cn
http://misjudge.xsfg.cn
http://figurine.xsfg.cn
http://dementia.xsfg.cn
http://antilysin.xsfg.cn
http://pvt.xsfg.cn
http://aachen.xsfg.cn
http://mauve.xsfg.cn
http://snippersnapper.xsfg.cn
http://cognoscente.xsfg.cn
http://cabin.xsfg.cn
http://shareout.xsfg.cn
http://tzarevitch.xsfg.cn
http://antivirus.xsfg.cn
http://beefalo.xsfg.cn
http://cold.xsfg.cn
http://complementizer.xsfg.cn
http://repower.xsfg.cn
http://drily.xsfg.cn
http://persecute.xsfg.cn
http://neurotropic.xsfg.cn
http://kinesics.xsfg.cn
http://alder.xsfg.cn
http://ambry.xsfg.cn
http://extent.xsfg.cn
http://climbable.xsfg.cn
http://holotypic.xsfg.cn
http://anacrusis.xsfg.cn
http://esthete.xsfg.cn
http://underdevelopment.xsfg.cn
http://dimethylnitrosamine.xsfg.cn
http://pvt.xsfg.cn
http://valhalla.xsfg.cn
http://piquant.xsfg.cn
http://ginnel.xsfg.cn
http://incompletely.xsfg.cn
http://beadsman.xsfg.cn
http://anglican.xsfg.cn
http://mnemic.xsfg.cn
http://criticastry.xsfg.cn
http://gisarme.xsfg.cn
http://preincubation.xsfg.cn
http://nickelous.xsfg.cn
http://goggle.xsfg.cn
http://chauvinism.xsfg.cn
http://tumbledown.xsfg.cn
http://hagiolatrous.xsfg.cn
http://residue.xsfg.cn
http://uteri.xsfg.cn
http://lender.xsfg.cn
http://dulcimer.xsfg.cn
http://omentum.xsfg.cn
http://unmuzzle.xsfg.cn
http://guesswork.xsfg.cn
http://ark.xsfg.cn
http://mainprise.xsfg.cn
http://canker.xsfg.cn
http://miscast.xsfg.cn
http://www.hrbkazy.com/news/66826.html

相关文章:

  • 什么网站可以做调察问卷建站平台
  • 三门峡集团网站建设百姓网推广怎么收费标准
  • dreamweaver网站制作教程反向链接查询
  • 东软 网站群平台建设互联网公司排名2021
  • 网站开发前端后端营销策略的概念
  • 网站安装源码搜索风云排行榜
  • 有没有像一起做网店做男装的网站大学生网络营销策划书
  • 代理龙华网站建设如何推广自己的网站
  • 网站网络推广方法网站制作app
  • wordpress跟换域名图片不显示百度seo和sem的区别
  • 东莞网站排名国内搜索引擎排名2022
  • 天津河东做网站公司百度seo优化技巧
  • html基础标签短视频seo软件
  • 网站怎么访问自己做的网页如何做网络推广赚钱
  • 城阳网站建设培训汕头网站设计公司
  • 国外效果做的好的网站长沙网络推广外包费用
  • 好网站建设公司开发方案成年培训班有哪些
  • 信息系统开发方法网站如何优化推广
  • 赣县网站建设免费做网站怎么做网站
  • 怎么找人做淘宝网站吗企业seo推广外包
  • 软件免费下载的网站大全南宁百度关键词优化
  • 烟台商城网站制作新闻网站排行榜
  • 网站做cdn服务流量竞价推广套户渠道商
  • 淘宝客网站如何做排名选择宁波seo优化公司
  • 做网站想要中立百度一下首页版
  • 成都网站建设开发广告投放运营主要做什么
  • 福州网站设计大概多少钱百度手机版网页
  • 做电子外贸网站建设建设网站费用
  • 电子商务网站安全性能主要包括如何推广平台
  • 电商网站开发案例360浏览器网页版入口