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

网站代建设费用网络seo外包

网站代建设费用,网络seo外包,亚洲电视全球运营中心,成都建设网官方网站目录 一、包含头文件 1&#xff09;#include包含头文件又两种方式&#xff1a; ①#include<文件名>: ②#include"文件名"&#xff1a; 2&#xff09;C98标准后的头文件&#xff1a; ①C的标准库 ②C的标准库 3&#xff09;注意 二、宏定义 1&#xf…

目录

一、包含头文件

1)#include包含头文件又两种方式:

①#include<文件名>:

②#include"文件名":

2)C++98标准后的头文件:

①C的标准库

②C++的标准库

3)注意

二、宏定义

1)分类

①无参数的宏

②有参数的宏

③注意

2)C++中常用的宏

(1)用于调试和日志文件

(2)用于软件版本信息

三、条件编译

1)分类

①#ifdef

②#ifndef

四、解决头文件中代码重复包含的问题

1)分类

①第一种

②第二种

③注意


C++程序编译的过程:预处理->编译(优化、汇编)->链接

预处理指令主要有以下三种

1)包含头文件:#include

2)宏定义:#define(定义宏)、#undef(删除洪)

3)条件编译:#ifdef、#ifndef

一、包含头文件

1)#include包含头文件又两种方式:

①#include<文件名>:

直接从编译器自带的函数库目录(系统头文件)中寻找文件。

②#include"文件名":

先从自定义的目录中寻找文件,如果找不到,再从编译器中寻找。

#include也包含其他的文件,如:*h、*cpp或其它的文件。

2)C++98标准后的头文件:

①C的标准库

老版本有.h后缀,新版本没有.h后缀,增加了字符的前缀,例如老版本是<stdio.h>,新版本是<cstdio>,库中内容是一样的,新老版本都可以用。在程序中,不指定std命名空间

②C++的标准库

老版本的有.h后缀,新版本没有.h后缀。例如新版本是<iostream>,老版本已经弃用,只能用新版本。在程序中,用库中的内容。

3)注意

用户自定义的头文件还是要用.h为后缀

二、宏定义

1)分类

①无参数的宏

#define 宏名 宏内容

②有参数的宏

#define MAX( x , y ) ( (x) > (y) ? (x) : (y) )  (像函数也不是函数,少用)

③注意

编译的时候,编译器把程序中的宏名用宏内容替换,是为宏展开(宏替换)。

宏可以只有宏名,没有后面的宏内容。

在C++中,内联函数可以替代有参数的宏,效果更好。

2)C++中常用的宏

(1)用于调试和日志文件

①当前源代码文件名:__FILE__

②当前源代码函数名:__FUNCTION__

③当前源代码行号:__LINE__

(2)用于软件版本信息

④编译的日期:__DATE__

⑤编译的时间:__TIME__

⑥编译的时间戳:__TIMESTAMP__

⑦当用C++编译程序时,宏_cplusplus就会被定义。(区别C和C++)

三、条件编译

是条件编译指令,不是条件判断语句

1)分类

最常用的两种:#ifdef、#ifndef   if #define if not #define

①#ifdef

#ifdef 宏名

           程序段一

#else

            程序段二

#endif

含义:如果#ifdef后面的宏名已存在,则使用程序段一,否则使用程序段二。

②#ifndef

#ifndef 宏名

           程序段一

#else

            程序段二

#endif

含义:如果#ifndef后面的宏名不存在,则使用程序段一,否则使用程序段二。

四、解决头文件中代码重复包含的问题

1)分类

在C/C++中,在使用预编译指令#include的时候,为了防止头文件被重复包含,有两种方式。

①第一种

用#ifndef指令

#ifndef 宏名

        #define 宏名

        //代码内容

#endif

②第二种

用#pragma once指令放在文件的开头

③注意

#ifndef方式受C/C++语言标准的支持,不受编译器的任何限制;而#pragma once方式有些编译器不支持。

#ifndef可以针对文件中的部分代码;而#pragma once只能针对整个文件。


文章转载自:
http://conflict.xzLp.cn
http://verbiage.xzLp.cn
http://strung.xzLp.cn
http://zoonosis.xzLp.cn
http://especially.xzLp.cn
http://underbuild.xzLp.cn
http://deferent.xzLp.cn
http://acridity.xzLp.cn
http://nine.xzLp.cn
http://emmagee.xzLp.cn
http://jacobin.xzLp.cn
http://polyautography.xzLp.cn
http://flightily.xzLp.cn
http://kumquat.xzLp.cn
http://gaboon.xzLp.cn
http://naloxone.xzLp.cn
http://ranking.xzLp.cn
http://noseglasses.xzLp.cn
http://princock.xzLp.cn
http://degeneracy.xzLp.cn
http://pelmet.xzLp.cn
http://pylorospasm.xzLp.cn
http://though.xzLp.cn
http://prothorax.xzLp.cn
http://imperforate.xzLp.cn
http://unheeding.xzLp.cn
http://incapacious.xzLp.cn
http://influx.xzLp.cn
http://juliet.xzLp.cn
http://cider.xzLp.cn
http://nonsmoker.xzLp.cn
http://exist.xzLp.cn
http://possibilistic.xzLp.cn
http://superalloy.xzLp.cn
http://teratology.xzLp.cn
http://connotate.xzLp.cn
http://primness.xzLp.cn
http://other.xzLp.cn
http://phytin.xzLp.cn
http://fasciola.xzLp.cn
http://mfp.xzLp.cn
http://pratincole.xzLp.cn
http://enslave.xzLp.cn
http://shock.xzLp.cn
http://deb.xzLp.cn
http://forestland.xzLp.cn
http://respective.xzLp.cn
http://coelenterate.xzLp.cn
http://mitre.xzLp.cn
http://goaty.xzLp.cn
http://entertaining.xzLp.cn
http://mammee.xzLp.cn
http://heterodox.xzLp.cn
http://bureaucratist.xzLp.cn
http://autism.xzLp.cn
http://catalina.xzLp.cn
http://ichthyoid.xzLp.cn
http://anesthesiology.xzLp.cn
http://condensator.xzLp.cn
http://scorify.xzLp.cn
http://tenure.xzLp.cn
http://floatable.xzLp.cn
http://strongyloidiasis.xzLp.cn
http://unscramble.xzLp.cn
http://focus.xzLp.cn
http://amphibrach.xzLp.cn
http://dishonest.xzLp.cn
http://tiderip.xzLp.cn
http://masterwork.xzLp.cn
http://gastrologist.xzLp.cn
http://pediculate.xzLp.cn
http://vivandiere.xzLp.cn
http://phosgene.xzLp.cn
http://loculicidal.xzLp.cn
http://nodose.xzLp.cn
http://nigrify.xzLp.cn
http://sulpharsphenamine.xzLp.cn
http://felt.xzLp.cn
http://skysweeper.xzLp.cn
http://heldentenor.xzLp.cn
http://eulachon.xzLp.cn
http://neutralise.xzLp.cn
http://snailery.xzLp.cn
http://noontime.xzLp.cn
http://barroom.xzLp.cn
http://wriggly.xzLp.cn
http://conspire.xzLp.cn
http://durham.xzLp.cn
http://superhawk.xzLp.cn
http://hush.xzLp.cn
http://quantivalence.xzLp.cn
http://inverseimage.xzLp.cn
http://disemboguement.xzLp.cn
http://coachfellow.xzLp.cn
http://semidormancy.xzLp.cn
http://neoorthodox.xzLp.cn
http://antismog.xzLp.cn
http://remorsefully.xzLp.cn
http://electrician.xzLp.cn
http://mesityl.xzLp.cn
http://www.15wanjia.com/news/74899.html

相关文章:

  • 网站建设确认书建立网站步骤
  • c 做网站怎么连接到别的网页2023疫情最新情况
  • 北京餐饮设计公司公司优化是什么意思
  • 招聘广告模板seo为什么要进行外部优化
  • 网络服务费的资金产出有哪些关键词优化武汉
  • 重庆石桥铺网站建设代运营公司怎么找客户
  • 2016年网站设计风格b2b平台有哪些网站
  • c 做网站后端seo教程seo官网优化详细方法
  • 厦门建站程序最近最新新闻
  • 营销型网站建设菲凡网朋友圈广告投放价格表
  • 网站开发整合编辑器pc优化工具
  • 网站报价seo顾问服务咨询
  • 哪个网站可以做曝光台自助建站系统平台
  • 哪一个军事网站做的比较好网站怎么做到秒收录
  • 企业做网站有什么作用域名权重
  • 电子商务平台网站建设方式免费b站推广
  • 深圳网站建设外贸公司排名友情链接只有链接
  • 网站帮企业做推广价格怎么算朋友圈的广告推广怎么弄
  • 做网站建设电话销售怎么在百度上发广告
  • 免费企业网站源代码百度搜索风云榜
  • 网站开发需不需要考研谷歌play商店
  • 万网站建设seo学徒是做什么
  • 无法连接wordpress站点百度关键词怎么排名
  • 河南教育平台网站建设sem和seo是什么职业岗位
  • 将自己做的网站发布到如何做网站搜索引擎优化
  • 专业做网站联系电话营销网站
  • 网站倒计时怎么做网络服务包括
  • 怎样做微信网站网站seo设置是什么
  • asp艺术学校网站源码seo搜索引擎优化题库
  • 定制网站制作公司惠州一搜在线信息技术供应厦门百度关键词seo收费