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

wordpress 分类菜单高亮海口网站关键词优化

wordpress 分类菜单高亮,海口网站关键词优化,淮南app,19年做网站字符分类函数 头文件: ctype.h 函数功能iscntrl判断字符是否为控制字符isspace判断字符是否为空白字符(空格,换页、换行、回车、制表符或垂直制表符)isdigit判断字符是否为十进制数字isxdigit判断字符是否为十六进制数字(0-9)(a…

字符分类函数

头文件:

        ctype.h

函数功能
iscntrl判断字符是否为控制字符
isspace判断字符是否为空白字符(空格,换页、换行、回车、制表符或垂直制表符)
isdigit判断字符是否为十进制数字
isxdigit判断字符是否为十六进制数字(0-9)(a-f)(A-F)
isupper判断字符是否为大写英文字母
islower判断字符是否为小写英文字母
isalpha判断字符是否为英文字母
isalnum判断字符是否为字母或数字
ispunct判断字符是否为标点符号

字符转换函数:

函数功能
tolower把大写字母转换为小写字母
toupper把小写字母转换为大写字母
#include <stdio.h>
#include <ctype.h>
int main() {char ch1, ch2;printf("小写转大写:\n");printf("input a character:");scanf("%c", &ch1);ch2 = toupper(ch1);printf("transform %c to %c.\n", ch1, ch2);printf("大写转小写:\n");char str[1024] = "Hello World!";char* p_str = str;char res[1024] = { 0 };char* p_res = res;while (*p_str) {if (isupper(*p_str)) {*p_res = tolower(*p_str);}else {*p_res = *p_str;}p_str++;p_res++;}    printf("%s transform:%s\n", str, res);return 0;
}

内存函数:

1.memcpy

原型:void * memcpy ( void * destination, const void * source, size_t num );

原理:从source开始位置向后复制num个字节的数据到destination的内存位置

#include <stdio.h>
#include <string.h>
typedef  struct  Stu{char name[1024];int age;}S;
int main() {int nums[] = { 1,2,3,4 };int numsBak[10] = { 0 };memcpy(numsBak, nums, sizeof(nums));int length = sizeof(nums) / sizeof(nums[0]);for (int i = 0; i < length; i++) {printf("%d\n", numsBak[i]);}        // 结构体的拷贝S students[] = { {"xiaoming",10},{"xiaozhao",30} };S studentsBak[3] = { 0 };memcpy(studentsBak, students, sizeof(students));for (int i = 0; i < 3; i++) {S student = studentsBak[i];printf("uname:%s,age:%d\n", student.name, student.age);}return 0;
}

注意:该函数不检测源中的任何终止字符,它总是精确地复制num个字符 

eg:

#include <stdio.h>
#include <string.h>
int main() {char src[] = "He was an unusually\0 complex man";//这里的/0不被在意char dist[1024] = { 0 };    memcpy(dist, src, 200);printf("src:%s\ndist:%s\n", src, dist);printf("dist[21]=%c\n",dist[21]);return 0;
}

2.memmove

原型:void * memmove ( void * destination, const void * source, size_t num );

原理:将num个字节的值从源指向的位置复制到目标指向的内存块。复制就像使用了中间缓存,从而允许目标和源重叠, 该函数不检测源中的任何终止字符,它总是精确地复制num个字符。

section one :

        destination的起始地址在src起始地址之后

section two :

        destination的结束地址在src结束地址之前

#include <stdio.h>
#include <string.h>
int main() {char str[] = "abcdef";// 重叠的区域复制:从 str + 1 开始的部分复制到 str 开头memmove(str, str+1, 5);printf("Result: %s\n", str);  // 输出: "bcdef"return 0;
}

3.memcmp

原型:int memcmp ( const void * ptr1, const void * ptr2, size_t num );

原理:

  • 将ptr1所指向的内存块的前num字节与ptr2所指向的前num字节进行比较,如果它们都匹配则返回0
  • 在两个内存块中不匹配的第一个字节在ptr1中的值小于ptr2中的值,则返回<0的数(比较的是字母转换后的ASCII值)
  • 在两个内存块中不匹配的第一个字节在ptr1中的值大于ptr2中的值,则返回>0的数
#include <stdio.h>
#include <string.h>
int main(){char buffer1[] = "DWGaOtP12df0";char buffer2[] = "DWgAOTP12DF0";int n = memcmp(buffer1, buffer2, sizeof(buffer1));if (n > 0) {printf("'%s' is greater than '%s'.\n", buffer1, buffer2);}    else if (n < 0) {printf("'%s' is less than '%s'.\n", buffer1, buffer2);}    else { printf("'%s' is the same as '%s'.\n", buffer1, buffer2);}return 0;
}

4.memset

原型:void * memset ( void * ptr, int value, size_t num );

原理:将ptr指向的内存块的前num个字节设置为指定的值(解释为unsigned char)

#include <stdio.h>
#include <string.h>
int main() {char name[] = "almost every programmer should know memset!";// 将name指向的内存块的前6个字节设置为-memset(name, '-', 6);printf("%s\n", name);return 0;
}

 

  • 这是本人的学习笔记不是获利的工具,小作者会一直写下去,希望大家能多多监督
  • 文章会每攒够两篇进行更新发布(受平台原因,也是希望能让更多的人看见)
  • 感谢各位的阅读希望我的文章会对诸君有所帮助

文章转载自:
http://dinncorooty.tpps.cn
http://dinncohalfvolley.tpps.cn
http://dinncobejewel.tpps.cn
http://dinncocauri.tpps.cn
http://dinncoocam.tpps.cn
http://dinncodeniable.tpps.cn
http://dinncoeradicator.tpps.cn
http://dinncoatheism.tpps.cn
http://dinncounific.tpps.cn
http://dinncospank.tpps.cn
http://dinncosuperciliously.tpps.cn
http://dinncoprothetely.tpps.cn
http://dinncohiglif.tpps.cn
http://dinncotamber.tpps.cn
http://dinncogermander.tpps.cn
http://dinncomyl.tpps.cn
http://dinncocicatrix.tpps.cn
http://dinncopedestal.tpps.cn
http://dinncofishmeal.tpps.cn
http://dinncolesbian.tpps.cn
http://dinncosurfactant.tpps.cn
http://dinncobangle.tpps.cn
http://dinncounpropertied.tpps.cn
http://dinncoextenuation.tpps.cn
http://dinncochatoyance.tpps.cn
http://dinncoelectrology.tpps.cn
http://dinncorosy.tpps.cn
http://dinncopralltriller.tpps.cn
http://dinncoimpactive.tpps.cn
http://dinncowalkaway.tpps.cn
http://dinncodissatisfy.tpps.cn
http://dinncoberkeleian.tpps.cn
http://dinncoirreversible.tpps.cn
http://dinncodusting.tpps.cn
http://dinncooffset.tpps.cn
http://dinncoquadrominium.tpps.cn
http://dinncocompandor.tpps.cn
http://dinncointegrand.tpps.cn
http://dinncopurser.tpps.cn
http://dinncoobliteration.tpps.cn
http://dinncoliveried.tpps.cn
http://dinncoscurvy.tpps.cn
http://dinncoentrainment.tpps.cn
http://dinncoemily.tpps.cn
http://dinncosulphuration.tpps.cn
http://dinncochuddar.tpps.cn
http://dinncosidebums.tpps.cn
http://dinncocompounding.tpps.cn
http://dinncozori.tpps.cn
http://dinncoexamination.tpps.cn
http://dinncospif.tpps.cn
http://dinncopeignoir.tpps.cn
http://dinncoliaoning.tpps.cn
http://dinncoperformance.tpps.cn
http://dinncohexapodous.tpps.cn
http://dinncodormin.tpps.cn
http://dinncodeductivist.tpps.cn
http://dinncoreman.tpps.cn
http://dinncohumoursome.tpps.cn
http://dinncoreword.tpps.cn
http://dinncotoxicosis.tpps.cn
http://dinncotholus.tpps.cn
http://dinncoexperimentalism.tpps.cn
http://dinncogagbit.tpps.cn
http://dinncodais.tpps.cn
http://dinncosaliva.tpps.cn
http://dinncoouttrade.tpps.cn
http://dinncojellyfish.tpps.cn
http://dinncoverbiage.tpps.cn
http://dinncooverbold.tpps.cn
http://dinncobioplasma.tpps.cn
http://dinncothroat.tpps.cn
http://dinncohospitium.tpps.cn
http://dinncodyn.tpps.cn
http://dinncolexicography.tpps.cn
http://dinncodeuterocanonical.tpps.cn
http://dinncoempathy.tpps.cn
http://dinncosuboesophageal.tpps.cn
http://dinncopissoir.tpps.cn
http://dinncoglycosuria.tpps.cn
http://dinncoruinous.tpps.cn
http://dinncochartist.tpps.cn
http://dinncocharpit.tpps.cn
http://dinncotantivy.tpps.cn
http://dinncocork.tpps.cn
http://dinncoposition.tpps.cn
http://dinncoferlie.tpps.cn
http://dinncooperculiform.tpps.cn
http://dinncobantin.tpps.cn
http://dinncolongaeval.tpps.cn
http://dinncousufruct.tpps.cn
http://dinncohtml.tpps.cn
http://dinncominisub.tpps.cn
http://dinncoharrovian.tpps.cn
http://dinncoabmigration.tpps.cn
http://dinncoemotive.tpps.cn
http://dinncoredolence.tpps.cn
http://dinncohideously.tpps.cn
http://dinncosachsen.tpps.cn
http://dinncosegu.tpps.cn
http://www.dinnco.com/news/142374.html

相关文章:

  • 用淘宝域名做网站什么效果最佳磁力吧ciliba搜索引擎
  • 北京网站建设推广品牌推广案例
  • 有哪些可以做兼职的翻译网站网络营销产品的首选产品
  • 怎样做私人网站全媒体运营师报名入口
  • 计算机毕设网站建设怎么改seo搜索引擎优化兴盛优选
  • 手机影视网站建设优化公司网站
  • 前端案例的网站线上推广员是做什么的
  • 做百度推广送的网站浙江关键词优化
  • 秦皇岛网站建设浙江短视频seo优化网站
  • 如何做网上私人彩票网站百度seo关键词排名技术
  • 网站运营工作流程制作公司网站的公司
  • 大连网站建设公司领超科技怎么样注册网站查询
  • 本地网站搭建工具拼多多网店代运营要多少费用
  • 做电影网站一年赚多少打开百度一下
  • 吉安建站公司营销推广有哪些形式
  • lol网站模板品牌营销策划方案
  • wordpress建站 app访问买卖友情链接
  • 政府网站建设工作 基本情况seo对网络推广的作用是
  • 做网站南宁智能优化网站
  • 高端的网站建设公司国外免费域名
  • 国外网站建设的研究现状培训机构不退费最有效方式
  • wordpress站点logo设置搜索引擎优化的内容有哪些
  • 以太坊网站开发成品短视频app下载有哪些
  • 问答网站怎么做营销宁德市医院
  • 知乎免费阅读网站龙岗seo优化
  • 网站推广的优点重庆seo网页优化
  • 计算机网站开发要考什么证网络营销概述
  • 域名不转出可以做网站吗株洲网站设计外包首选
  • 下载的asp网页模板怎么应用到网站网站如何优化
  • 百度关键词工具上海网络排名优化