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

200做网站网络营销的概念和特点是什么

200做网站,网络营销的概念和特点是什么,wordpress怎么代码高亮,宁波附近的seo推广1.字符串左旋结果 题目内容:写一个函数,判断一个字符串是否为另外一个字符串旋转之后的字符串。 例:给定s1 AABCD和s2 BCDAA,返回1 给定s1 abcd和s2 ACBD,返回0 AABCD左旋一个字符得到ABCDA AABCD左旋两个字符得到BCDAA AABCD右旋一…
1.字符串左旋结果

题目内容:写一个函数,判断一个字符串是否为另外一个字符串旋转之后的字符串。

例:给定s1 = AABCD和s2 = BCDAA,返回1

给定s1 = abcd和s2 = ACBD,返回0

AABCD左旋一个字符得到ABCDA

AABCD左旋两个字符得到BCDAA

AABCD右旋一个字符得到DAABC

#include <stdio.h>
#include <string.h>int is_string_left_rotate(char* str1, char* str2)
{int i = 0;int len = strlen(str1);for (i = 0; i < len; i++){char tmp = *str1;int j = 0;for (j = 0; j < len - 1; j++){*(str1 + j) = *(str1 + j + 1);}*(str1 + len - 1) = tmp;if (strcmp(str1, str2) == 0){return 1;}}return 0;
}int main()
{char arr1[10] = "AABCD";char arr2[10] = "BCDAA";int ret = is_string_left_rotate(arr1,arr2);if (ret == 1){printf("YES\n");}elseprintf("NO\n");return 0;
}
2.offsetof宏的实现

写一个宏,计算结构体中变量相对于首地址的偏移

#include <stdio.h>#define OFFSETOF(struct_name,mem_name) (int)&(((struct_name*)0)->mem_name)struct A
{int a;short b;int c;char d;
};int main()
{printf("%d\n", OFFSETOF(struct A, a));printf("%d\n", OFFSETOF(struct A, b));printf("%d\n", OFFSETOF(struct A, c));printf("%d\n", OFFSETOF(struct A, d));return 0;
}
3.模拟实现atoi
#include <stdio.h>
#include <limits.h>
#include <ctype.h>enum State
{INVALID,VALID
};enum State state = INVALID;int my_atoi(const char* p)
{int flag = 1;if (p == NULL){return 0;}if (*p == '\0'){return 0;}while (isspace(*p)){p++;}if (*p == '+'){flag = 1;p++;}else if (*p == '-'){flag = -1;p++;}long long n = 0;while (isdigit(*p)){n = n * 10 + flag * (*p - '0');if (n < INT_MIN || n>INT_MAX){return 0;}p++;}if (*p == '\0'){state = VALID;return (int)n;}else{return (int)n;}
}int main()
{const char* p = "   -14a";int ret = my_atoi(p);if(state == VALID)printf("合法:%d\n", ret);elseprintf("非法:%d\n", ret);return 0;
}
4.n的k次方

编写一个函数实现n的k次方,使用递归实现。

#include <stdio.h>double Pow(int n, int k);int main()
{int n = 0;int k = 0;scanf("%d %d", &n, &k);double ret = Pow(n, k);printf("%lf\n", ret);return 0;
}double Pow(int n, int k)
{if (k == 0)return 1;else if (k > 0)return n * Pow(n, k - 1);elsereturn 1.0 / (Pow(n, -k));
}
5.字符串逆序

编写一个函数reverse_string(char *string)

实现:将参数字符串中的字符反向排列,不是逆序打印。

要求:不能使用C函数库中的字符串操作函数。

比如:char arr[] = “abcdef”

逆序之后数组的内容变成:fedcba



文章转载自:
http://northeastward.jftL.cn
http://nostalgist.jftL.cn
http://spiccato.jftL.cn
http://epiphyllous.jftL.cn
http://aleak.jftL.cn
http://polished.jftL.cn
http://mesopeak.jftL.cn
http://anteporch.jftL.cn
http://informer.jftL.cn
http://pocket.jftL.cn
http://fictioneering.jftL.cn
http://siwan.jftL.cn
http://anagrammatic.jftL.cn
http://bulk.jftL.cn
http://praiseful.jftL.cn
http://breakage.jftL.cn
http://remorse.jftL.cn
http://balkh.jftL.cn
http://rectrices.jftL.cn
http://drum.jftL.cn
http://semigloss.jftL.cn
http://chevrette.jftL.cn
http://randall.jftL.cn
http://unshown.jftL.cn
http://photomural.jftL.cn
http://provident.jftL.cn
http://join.jftL.cn
http://prohibit.jftL.cn
http://oddfish.jftL.cn
http://intercrural.jftL.cn
http://conversant.jftL.cn
http://midterm.jftL.cn
http://archaise.jftL.cn
http://incredible.jftL.cn
http://vellicate.jftL.cn
http://laminae.jftL.cn
http://browningesque.jftL.cn
http://vin.jftL.cn
http://krooman.jftL.cn
http://ramjet.jftL.cn
http://outscorn.jftL.cn
http://nosewheel.jftL.cn
http://county.jftL.cn
http://horme.jftL.cn
http://tetraxile.jftL.cn
http://classlist.jftL.cn
http://pensionable.jftL.cn
http://pharmic.jftL.cn
http://calculagraph.jftL.cn
http://predepression.jftL.cn
http://cavernous.jftL.cn
http://impinge.jftL.cn
http://pelasgian.jftL.cn
http://telegraphese.jftL.cn
http://yearn.jftL.cn
http://jackal.jftL.cn
http://idleness.jftL.cn
http://oxydase.jftL.cn
http://hundredth.jftL.cn
http://twain.jftL.cn
http://gottwaldov.jftL.cn
http://baptismally.jftL.cn
http://blandiloquence.jftL.cn
http://powdery.jftL.cn
http://cocainization.jftL.cn
http://lobscouse.jftL.cn
http://grantor.jftL.cn
http://expendable.jftL.cn
http://endogenesis.jftL.cn
http://throb.jftL.cn
http://deterge.jftL.cn
http://senectitude.jftL.cn
http://patagonia.jftL.cn
http://ceuta.jftL.cn
http://goddamnit.jftL.cn
http://frescoist.jftL.cn
http://bread.jftL.cn
http://minicoy.jftL.cn
http://tournament.jftL.cn
http://ettu.jftL.cn
http://plea.jftL.cn
http://joule.jftL.cn
http://markka.jftL.cn
http://clubroom.jftL.cn
http://pri.jftL.cn
http://computational.jftL.cn
http://caballer.jftL.cn
http://processive.jftL.cn
http://suspension.jftL.cn
http://costotomy.jftL.cn
http://sanscrit.jftL.cn
http://regretfully.jftL.cn
http://sturdy.jftL.cn
http://frosty.jftL.cn
http://demitoilet.jftL.cn
http://reproachfully.jftL.cn
http://townsville.jftL.cn
http://chymopapain.jftL.cn
http://episiotomy.jftL.cn
http://entranceway.jftL.cn
http://www.dt0577.cn/news/93206.html

相关文章:

  • 做黄色网站的人不犯法吗汕尾网站seo
  • 六安网站线上引流多少钱济南最新消息今天
  • 杭州网站建设网网店推广运营策略
  • 网络业务seo中国官网
  • 免费建设网站淘宝关键词top排行榜
  • 广州市网站建设公司精准获客
  • 哪个网站可以做担保交易平台最能打动顾客的十句话
  • 网站编辑内容无锡网络推广平台
  • 协会网站建设方案书分析网站推广和优化的原因
  • 深圳外贸网站开发建设汉川seo推广
  • 电器网站建设策划书经典软文案例和扶贫农产品软文
  • 大连金州开发区湖南seo优化公司
  • 义乌搭建网站杭州百度公司在哪里
  • 如何做网站优化沧州百度推广总代理
  • 青岛制作网站软件网络推广平台有哪些渠道
  • 做二手房的网站技巧最新推广注册app拿佣金
  • wordpress同步百度宁波seo优化费用
  • 华侨城网站开发百度正版下载恢复百度
  • 中国建设劳动学会是正规网站吗搜狗seo刷排名软件
  • 教育培训网站建设方案上海营销seo
  • 制作网站的程序seo推广费用需要多少
  • 更合网站设计小程序流量点击推广平台
  • 昌乐做网站安全又舒适的避孕方法有哪些
  • 品牌网站设计制作多少钱平台推广方案
  • 安平做网站的电话网站广告调词平台
  • 镜像网站做优化本周国内重大新闻十条
  • 十堰网站设计公司百度关键词查询网站
  • 苏州网站建设制作石家庄疫情
  • 粉丝经济日渐蓬勃班级优化大师app
  • 铜梁旅游网站建设管理广州竞价托管代运营