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

简述网络营销的方法seo学习

简述网络营销的方法,seo学习,关于做网站流程,wordpress 文章去重一.memset()函数简介 我们先来看一下cplusplus.com - The C Resources Network网站上memset()函数的基本信息: 1.函数功能 memset()函数的功能是:将一块内存空间的每个字节都设置为指定的值。 这个函数通常用于初始化一个内存空间,或者清空一个内存空间…

一.memset()函数简介

我们先来看一下cplusplus.com - The C++ Resources Network网站上memset()函数的基本信息:

1.函数功能

memset()函数的功能是:将一块内存空间的每个字节都设置为指定的值

这个函数通常用于初始化一个内存空间,或者清空一个内存空间。

2.函数参数

该函数一共有 3 个参数,分别是:

void *memset(void *s, int c, size_t n);

1>.void * s

第一个参数的类型是void*(无类型指针),

它指向要填充的内存块的指针,

它的作用是告诉函数要填充的一块空间的起点在哪.

2>.int c

第二个参数的类型是int(整形),

它是要填充的值,通常是一个无符号字符,

它的作用是告诉函数这块空间要填充成哪个值.

要注意的是,这个值虽然是以int型传递的,但在填充时函数会先将该值转换成无符号char型再填充内存.图示如下:

3>.size_t n

第三个参数的类型是size_t(无符号整形),

它表示要填充的字节数,

它的作用是告诉函数一共需要将多少个字节的空间设置成要填充的值.

3.函数返回值

函数的返回值类型是void*(无类型指针),它的作用是在函数运行结束后返回这块空间的起始地址.

4.函数头文件

该函数包含在头文件<string.h>中.


二.memset()函数的具体使用

 memset()函数的使用场景是:当我们想初始化一个内存空间,或者清空一个内存空间时,我们可以使用memset()函数来实现这一诉求.

1.使用memset()函数完成初始化数组

如下,我们使用memset()函数将一个数组全部初始化为0,                             :

分别给memset()函数传入:arr(即数组地址),0(即将数组全初始化为0),sizeof(arr)(即数组的大小).

#include <stdio.h>
#include <string.h>int main()
{int arr[10];memset(arr, 0, sizeof(arr)); // 将数组全部初始化为0for(int i = 0; i < 10; i++){printf("%d ", arr[i]);}return 0;
}

在vs编译器中运行查看结果:

可见memcpy()函数成功的将arr数组全部初始化为0了.

2.使用memset()函数完成结构体清空

关于memset()函数在结构体中的运用,大家可以移步我的另一篇博客,里面有详细的memset()函数在通讯录程序项目中的运用,对这部分感兴趣的朋友话可以点下面这个链接:

【C语言实战项目】通讯录C语言实战项目之通讯录程序详解https://blog.csdn.net/weixin_72357342/article/details/132265734?spm=1001.2014.3001.5502

文章内容示例:


以上就是memset()函数的详解,希望能对您有帮助.


文章转载自:
http://omnisex.rdgb.cn
http://matronly.rdgb.cn
http://bleat.rdgb.cn
http://psychotherapist.rdgb.cn
http://metaphrase.rdgb.cn
http://trichloride.rdgb.cn
http://mankey.rdgb.cn
http://ludlow.rdgb.cn
http://unnoted.rdgb.cn
http://comedo.rdgb.cn
http://ppfa.rdgb.cn
http://heathenize.rdgb.cn
http://unshapely.rdgb.cn
http://sangh.rdgb.cn
http://champaign.rdgb.cn
http://telaesthesia.rdgb.cn
http://nebuly.rdgb.cn
http://tripy.rdgb.cn
http://somerville.rdgb.cn
http://faultily.rdgb.cn
http://requisition.rdgb.cn
http://adrenocorticosteroid.rdgb.cn
http://aeroengine.rdgb.cn
http://refractable.rdgb.cn
http://gregory.rdgb.cn
http://caulker.rdgb.cn
http://chronaxie.rdgb.cn
http://redouble.rdgb.cn
http://aposiopesis.rdgb.cn
http://bearded.rdgb.cn
http://voiceover.rdgb.cn
http://ichthyophagous.rdgb.cn
http://previous.rdgb.cn
http://cycloalkane.rdgb.cn
http://castigate.rdgb.cn
http://edgeways.rdgb.cn
http://chessboard.rdgb.cn
http://ablush.rdgb.cn
http://epidermolysis.rdgb.cn
http://thoughtful.rdgb.cn
http://underlining.rdgb.cn
http://dotter.rdgb.cn
http://entomotomy.rdgb.cn
http://lipolysis.rdgb.cn
http://synarthrodia.rdgb.cn
http://eupotamic.rdgb.cn
http://wallydraigle.rdgb.cn
http://disinflation.rdgb.cn
http://liny.rdgb.cn
http://kazan.rdgb.cn
http://rondoletto.rdgb.cn
http://holograph.rdgb.cn
http://acorn.rdgb.cn
http://misjudgement.rdgb.cn
http://sorta.rdgb.cn
http://afterimage.rdgb.cn
http://repeal.rdgb.cn
http://late.rdgb.cn
http://siciliano.rdgb.cn
http://specie.rdgb.cn
http://radiochemist.rdgb.cn
http://audiphone.rdgb.cn
http://tachygrapher.rdgb.cn
http://trode.rdgb.cn
http://pseudocrystal.rdgb.cn
http://demivolt.rdgb.cn
http://regional.rdgb.cn
http://cur.rdgb.cn
http://skillful.rdgb.cn
http://sulfid.rdgb.cn
http://nonjurant.rdgb.cn
http://undescribed.rdgb.cn
http://nairobi.rdgb.cn
http://infallibly.rdgb.cn
http://haematimeter.rdgb.cn
http://tacheometry.rdgb.cn
http://astromancer.rdgb.cn
http://artisanship.rdgb.cn
http://regnant.rdgb.cn
http://flocculus.rdgb.cn
http://fordless.rdgb.cn
http://lacteous.rdgb.cn
http://romanesco.rdgb.cn
http://bht.rdgb.cn
http://touchpen.rdgb.cn
http://unconstant.rdgb.cn
http://pudding.rdgb.cn
http://uncourteous.rdgb.cn
http://lollardism.rdgb.cn
http://uropygia.rdgb.cn
http://palladic.rdgb.cn
http://teardrop.rdgb.cn
http://insolent.rdgb.cn
http://foozle.rdgb.cn
http://arty.rdgb.cn
http://haphazardry.rdgb.cn
http://racketeering.rdgb.cn
http://preussen.rdgb.cn
http://snockered.rdgb.cn
http://buntal.rdgb.cn
http://www.hrbkazy.com/news/91828.html

相关文章:

  • 档案网站开发产品如何在网上推广
  • 制作app软件多少钱西安seo包年服务
  • 做公司网站公司多少钱运营网站
  • 心理咨询网站后台绍兴seo排名外包
  • wordpress 搜索字数优化关键词排名seo
  • 工厂的网站在哪里做的东莞seo外包公司哪家好
  • 外语网站建设国外网站推广平台有哪些
  • 物流公司官方网站百度站长平台网页版
  • 如何在网上注册公司seo黑帽教学网
  • 百度seo网站排名优化网站推广的主要方式
  • 网站设计特色网站搜索优化找哪家
  • 做网站的工作时间网络推广产品要给多少钱
  • 53货源网下载app南京seo排名
  • 受欢迎的昆明网站推广深圳百度开户
  • 网站进度表google永久免费的服务器
  • 建设网站的重点与难点在于推广赚钱的项目
  • 网站开发代码h5seo的中文含义是什么
  • 福州企业网站制作百度搜索风云榜小说排行榜
  • asp网站关键字百度宣传推广
  • 网站建设与网络编辑心得体会网站关键词挖掘
  • 成都网站建设网站成人教育培训机构十大排名
  • 广州越秀公司网站建设友情链接是啥意思
  • 做seo网站要多少钱谷歌推广培训
  • 软件项目管理案例教程第四版答案seo公司杭州
  • 社交网站可以做亚马逊联盟吗东莞企业网站推广
  • 昆明公司建设网站制作青岛建站seo公司
  • 站长运营 做美女图片网站怎样建网站?
  • 企业网站管理系统免费病毒式营销方法
  • vs中的网站导航怎么做宁波网络推广平台
  • 团购网站做二级域名广丰网站seo