E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Cplusplus
#ifdef __
cplusplus
我目前工作要把C++代码转换成C,转的过程中会有C和C++混用的问题,这时需要下面的#ifdef__
cplusplus
,因为一些函数编译后找不到,是因为按照C编译和C++编译后的函数或变量的符号修饰不一样
mathilde27
·
2016-10-20 10:08
C语言专题笔记——指针
(1)NULL在C/C++中定义为:#ifdef_
cplusplus
#defineNULL0#else#defineNULL(void*)0#endif//在C++
Lwins
·
2016-10-06 20:32
C语言专题
C++ priority_queue用法(大顶堆,小顶堆)
cplusplus
.comtemplate,classCompare=less>classpriority_queue;例子#include#include#include#include#include
MingjaLee
·
2016-10-03 11:04
c++
priority
queue
堆
C++
c++中string类的详解
转自http://www.
cplusplus
.com/reference/string/string/?
zzuli-dk
·
2016-09-23 11:48
c++基础知识
配置文件读写案例
valude)3)配置文件修改(输入key、valude)4)优化===》接口要求紧模块要求松二.代码实现cfg_op.h#ifndef__CFG_OP_H#define__CFG_OP_H#ifdef__
cplusplus
BUS375
·
2016-09-19 14:22
C语言提高
C++的NULL和nullptr
在C语言中,NULL被定义为(void*)0,而在C++语言中,NULL则被定义为整数0,编译器一般对其实际定义如下:#ifdef__
cplusplus
#defineNULL0#else#defineNULL
ColdCodes
·
2016-09-14 16:14
C/C++
C++笔记(继承,多态,虚函数,模板函数,异常捕获)
C++面向对象:在这里推荐大家一个C++的网站:http://www.
cplusplus
.com/reference/1.继承//继承--子类继承父类(儿子继承爸爸),儿子有了爸爸的特性和财产,提高了代码的重用性
ccj659
·
2016-09-05 11:00
C++中string的模拟实现
c++中的string类可以实现字符串对象的一系列操作,如下图就是从
cplusplus
上截取的string的一部分功能:接下来我就简单模拟几个函数实现首先,我们要给出完整的string类,包括构造函数,
qq_33951180
·
2016-08-31 10:45
C和C++到底有什么关系
注:转载于C语言中文网C++读作”C加加“,是”
CPlusPlus
“的简称。
种瓜大爷
·
2016-08-30 23:56
【极客班】《 STL与泛型编程第二周》学习笔记
1.mem_fun以及mem_func_refhttp://www.
cplusplus
.com/reference/functional/mem_fun/http://www.
cplusplus
.com
无心浪子
·
2016-08-28 23:25
【极客班】《 STL与泛型编程第二周》学习笔记
1.mem_fun以及mem_func_refhttp://www.
cplusplus
.com/reference/functional/mem_fun/http://www.
cplusplus
.com
无心浪子
·
2016-08-28 23:25
ffmpeg将ts解封装为h264和aac文件测试代码
ifdef_WIN32extern"C"{#include"libavformat/avformat.h"};#else#ifdef__cplusplusextern"C"{#endif#include#ifdef__
cplusplus
shareinfo2018
·
2016-08-28 13:15
ffmpeg
ffmpegj将h264与aac封装成mkv/ts或者h264与mp3封装成mp4/flv/avi测试代码
#ifdef__cplusplusextern"C"{#endif#include#ifdef__
cplusplus
};#endif#endif#de
shareinfo2018
·
2016-08-26 16:46
ffmpeg
C++ ratio
http://www.
cplusplus
.com/reference/ratio/ratio/ratio提供了一个分数但是只能是常量,所以一般是用chrono的duration中//ratioexample
yaoyuan-yy
·
2016-08-23 19:24
dlopen
cplusplusextern "C"{//必须加,因C++会对name进行重新命名 **add**#endifint add(const int &numa,const int &numb);#if __
cplusplus
qdqade
·
2016-07-16 15:46
error
shared
return
杂记
C++ heap 大根堆 小根堆
http://www.
cplusplus
.com/reference/algorithm/pop_heap/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ShinyaLicone
·
2016-07-08 10:29
数据结构与算法
C语言数据类型与输出格式
http://www.
cplusplus
.com/reference/cstdio/printf/?
骑着骆骆去看海
·
2016-06-25 10:28
C语言
字模bitmap使用实例
#ifndef__FONT_H__#define__FONT_H__#ifdef__
cplusplus
#if__cplusplusextern"C"{#endif#endif#defineDBG(fmt
CodeHeng
·
2016-06-16 10:55
位图
嵌入式开发
字模bitmap使用实例
#ifndef__FONT_H__#define__FONT_H__#ifdef__
cplusplus
#if__cplusplusextern"C"{#endif#endif#defineDBG(fmt
CodeHeng
·
2016-06-16 10:55
嵌入式开发
[C++]Shared_ptr使用详解&&实现链表
(知识点摘自
cplusplus
)构造部分构造函数有4个参数分别有以下含义:#in
stary_yan
·
2016-06-09 01:00
stl allocator源码学习
1.参考http://www.
cplusplus
.com/reference/memory/allocator/《STL源码剖析》《C++Primer第五版》《GenericProgrammingandth
xiyanggudao
·
2016-05-31 10:00
源码
STL
C++ 标准库的 locale 类用法
参考:
cplusplus
.com上关于标准C++中国际化支持的参考:LocalizationlibraryLocaleclassTheC++StandardLibrary(NicolaiM.Josuttis
Lina_ACM
·
2016-05-23 20:00
C 标准库 —— stdio.h
类型及宏定义(1)NULL #ifndefNULL #ifdef__
cplusplus
#defineNULL0 #else/*__
cplusplus
*/ #defineNULL((void
lanchunhui
·
2016-05-12 00:00
面向项目(七)—— C/C++的兼容性
#ifdefined(__
cplusplus
)#ifdefined(__
cplusplus
)#ifdefined(__
cplusplus
) extern"C"{ #endif ...
lanchunhui
·
2016-05-11 16:00
函数sscanf()及sprintf()的简单讲解 --- NOJ 2015 PUMA
本次讲解将结合NOJ-2015和
cplusplus
.com的讲解进行,题目链接如下:http://acm.njupt.edu.cn/acmhome/problemdetail.do?
why850901938
·
2016-05-10 17:00
替代链接 extern “C”
#ifndefACCOUNT_H_ #defineACCOUNT_H_ #ifdef__
cplusplus
//下边的设计就是无论是C或者C++都可以直接的调用,只需要加上此头文件就可以, extern"C
qq_31248551
·
2016-05-09 21:00
ifdef _
cplusplus
extern "C"的用法
在c++编译环境下会有_
cplusplus
被定义,然后在由extern"C"{}包含的语句范围内的函数都会按照C语言的方式去编译,由于C++和C的编译方式不一样,主要在于C++需要考虑重载的情况;所以在当
bangexiyang
·
2016-05-05 14:00
go的多线程和通道(信道)
>>>https://github.com/eleme/eleme.github.io/tree/master/_posts并发和并行的区别:https://github.com/forhappy/
Cplusplus
-Concurrency-In-Practice
weixin_34318272
·
2016-05-01 15:00
java
c++的bind()函数
c++的bind()函数APIhttp://www.
cplusplus
.com/reference/functional/bind/引用http://www.linuxidc.com/Linux/2015
icream1752
·
2016-04-27 19:34
c/c++
Visual Studio 2012 IDE 对C/C++显示混乱
移植一个项目的代码到VS2012,发现C语言文件居然内置定义了__
cplusplus
,编译无误,但是IDE显示很多命名空间里的变量,一大堆红色下划线因为命名空间是这样的:#ifdef__
cplusplus
prsniper
·
2016-04-26 20:00
nrf51822连接微信---crc32计算
#ifndef__CRC32_H__#define__CRC32_H__ #include #ifdef__
cplusplus
extern"C"{ #endif uint32_tcrc32(uint32
a369000753
·
2016-04-23 16:00
Andriod JNI中使用GLM
limits:Nosuchfileordirectory becausebydefaulttheNDKusesastripped-downC++runtimelibrary.Youwillneedtoread
CPLUSPLUS
-SUPPORT
jaccen
·
2016-04-18 12:00
c++ locale类
参考:
cplusplus
.com上关于标准C++中国际化支持的参考:LocalizationlibraryLocaleclassTheC++StandardLibrary(NicolaiM.Josuttis
u013349653
·
2016-04-13 21:00
FFMPEG 从rtsp抓取流,转存为flv文件。C语言代码方式.
#include #define __STDC_CONSTANT_MACROS #ifdef __
cplusplus
extern "C" { #endif #include #include #
lanybass
·
2016-04-13 16:00
C语言
ffmpeg
flv
MinGW
RTSP
Linux内核如何装载和启动一个可执行程序
》MOOC课程http://mooc.study.163.com/course/USTC-1000029000一、预备知识1.1编译链接的过程预处理:(.c---->.cpp)(注意:这里的CPP不是
CPlusPlus
on_fighting
·
2016-04-09 22:00
linux
linux
kernel
C++的tie()函数
cplusplus
.com给出的定义是:ostream*tie()const;//返回指向绑定的输出流的指针。ostream*tie(ostream
qq100440110
·
2016-04-04 14:00
C++
AES加密
AES 密文长度 = (原文长度 / 16) * 16 + 16这里的“/”表示整除#ifndef__AES_H #define__AES_H #ifdef__
cplusplus
extern"C"{
a369000753
·
2016-04-01 17:00
C++ STL 排序函数
时间复杂度均为N*log(N)//一般排序//sortstable_sort在中//函数原型voidsort(_RanIt_First,_RanIt_Last,_Pr_Pred)//参考http://www.
cplusplus
.com
暗黑独角兽
·
2016-03-31 16:30
数据结构
[置顶] C语言经典小程序(热门题型)
但是在笔试或者面试时,总会在一些不经意的小程序或简单功能的函数难住,所以说C语言虽然没有
Cplusplus
的深度,但其广度丝毫不亚于C++,对于面向过程的高级语言来说,C语言的细枝末节可谓浪里淘沙,在此总结列举少许较为常见的
Xiao__Tian__
·
2016-03-30 20:00
C语言常见小函数
C语言经典小程序
面试笔试常见小题型
建议1:区分0的4中面孔
#ifndefNULL #ifdef_
cplusplus
#defineNULL0 #els
mymilkbottles
·
2016-03-29 20:00
C++项目中的extern "C" {}
.*/ #ifdef__
cplusplus
}#endif它到底有什么用呢,你知道吗?而且这样的问题经常会出现在面试or笔试中。
u010147215
·
2016-03-28 15:00
error C2054: 在“inline”之后应输入“(”
defined(_
cplusplus
) #defineinline_inline///errorC2054:在“inlin
·
2016-03-26 22:00
为什么头文件这么定义
*/#ifdef __
cplusplus
}#endif #endif /*__INCvxWorksh*/ 函数被C++编译后在symbol库中的名字与C语言的不同。例如,
jobbofhe
·
2016-03-25 16:00
C++字符串转数字,数字转字符串
使用://Convertstringtointeger,more@http://www.
cplusplus
.com/reference/clibrary/cstdl
qq100440110
·
2016-03-25 13:00
C++
String
jni String字符串处理
ifndef _Included_com_learn_ndk_StringProcess #define _Included_com_learn_ndk_StringProcess #ifdef __
cplusplus
whitemine
·
2016-03-24 15:00
结构体指针
参考http://www.
cplusplus
.com/doc/tutorial/structures/#include structPeople{ intage; }; intmain
haxnt
·
2016-03-15 23:00
【C++】模版实现双向链表的各种操作(如:逆置、去重Unique、分类(冒泡)、合并)
在
cplusplus
.com里,我们可以搜索list来查看库是如何实现双向链表的。当然,我们也可以在平时使用时包上头文件list来调用C++里的list库。
韩静静
·
2016-03-13 22:36
C++
双向链表
逆置
模版实现
去重Unique
编程拾贝(一)
0)在C++中void*是不太受欢迎的,很容易出现问题,在赋值给其他指针类型的时候会隐士转换成该类型(也就是运行时确认),C++不允许隐式转换指针,因此定义如下:#ifndefNULL#ifdef__
cplusplus
BestRivenFan
·
2016-03-13 22:00
C++
qt
订阅者模式
extern "C"
#ifdef__
cplusplus
//__
cplusplus
是cpp中自定义的一个宏extern"C"{//告诉编译器,这部分代码按C语言的格式进行编译,而不是C++的#endif /****somedeclarationorso
huang_yx005
·
2016-03-12 12:00
在C代码中调用C++接口
封装的接口例如:要想在A.c文件中,调用生命在B.h,实现在B.cpp中的接口boolgetMAC(char*mac_addr);其实现方法B.cpp如下: 1 // B.cpp 2 3 #ifndef _
cplusplus
Snow_斯诺
·
2016-03-10 15:00
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他