在.cpp文件中调用.c文件中的函数

如何在C/C++中调用lua文件中的函数 调用lua函数,首先需要搭建一下运行lua的环境,具体步骤,可以参考我上一篇博客(这篇也是接着上一篇写的),这里不再赘述; 先创建一个一个test.lua文件,具体内容如下: --随便写写,反正是测试用的 print('你好,欢迎来到lua世界!') function myadd(x,y) return x+y end 调用lua文件中函数的具体步骤,直接上源码吧,里面都用注释解释了: #include <iostream> extern "C" //因为我创建的是C++项目 阅读详情

问题描述:

提示:今日需要在c++项目中调用GMSSL中的SM2的相关函数接口。在包含头文件,链接动态库
.cpp中调用GMSSL(c语言库)的函数的代码:

@Override
        #include <openssl/bn.h>
        #include <openssl/ec.h>
        #include <openssl/evp.h>
        #include <openssl/rand.h>
        #include <openssl/engine.h>
        #include <openssl/sm2.h>
        #include <openssl/gmapi.h>
        
        /*从私钥证书里读取私钥*/
		EC_KEY *sm2_private_key = NULL;  //私钥
		char *passin = NULL;  //证书读取密码
		BIO *pri_in = NULL;  //输入输出流
		pri_in = BIO_new(BIO_S_FILE());
		
		if(BIO_read_filename(pri_in, "/home/pemfile/pri_key_pkcs8.pem") <= 0){
			cerr<<"Failed to read pem file"<<endl;
			return -1;
	}
		
		sm2_private_key = PEM_read_bio_ECPrivateKey(pri_in, NULL, NULL, passin);  //证书未设置密码,所以passin为NULL
		

编译命令:g++ -g -o parser_records.cpp --std=c++11 -I /usr/local/gmssl/include -lcrypto -ldl -pthread
在编译时已经把头文件包含进去,头文件路径给出(/usr/local/gmssl/include),把GM的动态库链接进去(-lcrypto)。在此情况下,编译时一直提示“函数PEM_read_bio_ECPrivateKey在此作用域中尚未申明”。

原因分析:

提示:后来发现是因为cpp文件中不能直接调用c的接口!


解决方案:

参照链接: https://blog.csdn.net/shaosunrise/article/details/81176880.

@Override

	extern "C" { 
        #include <openssl/bn.h>
        #include <openssl/ec.h>
        #include <openssl/evp.h>
        #include <openssl/rand.h>
        #include <openssl/engine.h>
        #include <openssl/sm2.h>
        #include <openssl/gmapi.h>
        }
        
        /*从私钥证书里读取私钥*/
		EC_KEY *sm2_private_key = NULL;  //私钥
		char *passin = NULL;  //证书读取密码
		BIO *pri_in = NULL;  //输入输出流
		pri_in = BIO_new(BIO_S_FILE());
		
		if(BIO_read_filename(pri_in, "/home/pemfile/pri_key_pkcs8.pem") <= 0){
			cerr<<"Failed to read pem file"<<endl;
			return -1;
	}
		
		sm2_private_key = PEM_read_bio_ECPrivateKey(pri_in, NULL, NULL, passin);  //证书未设置密码,所以passin为NULL
		

后编译通过。

ubuntu下C++与C混合编译 最近在做一个项目,前期是用C语言编写的程序并封装成了静态库,然后将其放置于C++开发的工程中进行调用,主调程序代码保存为.c文件时很容易编译通过,但主调代码不变仅仅改变.c文件为.cpp文件,无论编译器是gcc还是g++均会报很多错误,提示找不到include的头文件,网上查了原因,说是C语言和C++的编译器对函数的识别不一致,需要将include的文件以及引用的函数外加上exter... 阅读详情

相关推荐

5分钟搞懂SCMA:稀疏码多址接入的核心原理与实战应用

本文深入浅出地解析了SCMA(稀疏码多址接入)的核心原理与实战应用。通过对比传统正交多址技术,阐释了SCMA如何通过非正交叠加和稀疏码本设计,实现远超资源单元数的用户接入,从而有效应对5G海量机器通信(mMTC)的挑战。文章还探讨了其在上行海量连接、免授权接入等场景的应用潜力及工程实现中的关键考量。

zeta9的博客 269

cpp 程序调用 c 程序(extern “C“ 的使用)

.cpp 文件调用 .c 文件中的函数

challenglistic的博客 2936

傅里叶光学(1)

傅里叶光学,可以看作是通信理论中傅里叶变换等一系列数学思想以及系统理论与光学(主要是衍射光学)相结合的产物关于傅里叶光学的应用领域,本节介绍了成像,当然事实上不可能仅限于成像,经典的还如激光散斑的一些应用,干涉计量,还有傅里叶变换光谱学等等。最后总结一下,傅里叶光学我认为可以看做一个工具,对于任意的系统,它能给出一些数学思想与物理原理进行解释和分析,找出系统的扰动和响应的关系,或者说根据扰动和响应,来研究或者设计一个系统。

m0_53607446的博客 1708

.cpp调用.c的变量或函数【转】

mark一下:当我们在.cpp文件中调用.c文件中变量和函数时,我们应该如何声明以及调用它? 因为C++和C是两种完全不同的编译链接处理方式,所以如果直接在C++里面调用C函数,这样链接起来是通不过的,会报链接错误,找不到函数体,所以要在C++文件里面显示声明以下一些函数是C写的,要用C的方式来处理,这个在C++设计初期就考虑到兼容性的问题,所以是可以解决的。而 extern “C”

2246

三相逆变器拓扑结构的分析及应用场景

三相逆变器是电力电子领域中广泛应用的一种设备,用于将直流电转换为交流电。不同的拓扑结构在性能、成本、复杂度和应用领域上存在差异。小编将在本文中将进一步拓展对三相逆变器拓扑结构的分析,并探讨其适用的应用场景。

道合顺的博客 2246

figma MCP + cursor如何将设计稿生成前端页面

Figma MCP配置与代码生成指南 本文详细介绍了如何在Cursor中配置Figma MCP(多上下文处理器)的完整流程:从获取Figma API密钥、设置MCP服务器配置,到添加代码生成规则。关键步骤包括生成Figm a个人访问令牌、配置cursor settings文件、启用MCP服务,以及设置代码规则(包含TypeScript/Vue技术栈规范、BEM命名规则等)。最后提供了将Figma设计稿转化为Vue页面的prompt模板,涵盖文件结构、图片处理、样式规范等具体要求,确保生成代码与设计稿高度一致

weixin_45644355的博客 2915

c++程序调用c函数(extern “C“的使用)

一、概念 c++程序调用c函数,即为在xx.cpp文件中调用在func.c文件中实现的函数 extern "C"的主要作用是为了实现c++代码能够调用c语言代码。加上extern "C"后,这部分代码编译器按c语言的方式进行编译和链接,而不是c++的方式。 二、原理 由于c++中需要支持函数重载,所以c和c++中对同一个函数经过编译后生成的函数名是不同的,这就会导致一个问题,如果在c++中调用一个使用c语言编写模块中的某个函数,c++是按照c++的名称修饰方式来查找并链接这个函数,就会发生链接错误。

大菜菜的博客 1万+

数据集FFHQ和LSUN介绍【包含FFHQ1024,515,256,128分辨率图像获取方法】

FFHQ全称Flickr-Faces-High-Quality(Flickr-Faces-HQ),最初是作为生成式对抗网络(GAN)的基准创建的,也用于StyleGAN的训练数据集中,并由英伟达于2019年开源。CVPR_2019Flickr-Faces-HQ (FFHQ)其由 70,000 张分辨率为 1024×1024 的高质量 PNG 图像组成,在年龄、种族和图像背景方面包含相当大的差异。它对眼镜、太阳镜、帽子等配饰也有很好的覆盖。

zik的博客 3988

Cpp调用C中的函数

在C文件对应的.h文件中加入以下红色部分: #ifndef _XXXXX_H_ #define _XXXXX_H_ #ifdef __cplusplus extern "C" { #endif void **********(void); //需要引用的函数若干 ..... ..... #ifdef __cplusplus } #endif #endif ...

皈依 1645

C#上位机项目实战(32)——如何防止winform程序因为误操作被关闭

我们在开发的上位机软件运行起来以后,一般在右上角都有一个关闭按钮,正常情况下点击关闭按钮就能关闭软件,但是不排除我们不想关闭软件,但是因为不小心把鼠标点到了关闭按钮,如果这是一个正在生产的机器,突然关闭软件可能会导致产品损坏,那么我们如何去解决这个误操作的问题呢,本文就来讲解解决方案!

qq_34059233的博客 692

分子动力学仿真软件:LAMMPS_(16).应用案例分析

通过以上四个应用案例,我们详细介绍了如何使用LAMMPS进行不同系统的分子动力学仿真。从简单的液体水仿真到复杂的纳米管仿真,每个案例都包含了详细的步骤说明和代码示例。读者可以通过这些示例实际操作并验证结果,从而更好地理解LAMMPS的功能和使用方法。希望这些案例能够为读者在分子动力学仿真领域的研究和应用提供帮助。

kkchenjj的博客 848

C++调用C

一、 基础知识 函数调用,编译器只要知道函数的参数类型和返回值以及函数名就可以进行编译连接。那么为了让C调用C++接口或者 是说C++调用C接口,就必须是调用者和被调用者有着同样的编译方式。这既是extern "C"的作用, extern “C”是的程序按照C的方式编译。   //cplus.cpp  //按照C+

在线笔记 4194

ASProxy64.dll导致jetbrains家的IDE都无法打开。

摘要:在Windows11系统中,JetBrains IDE无法启动,报错指向ASProxy64.dll文件。该第三方DLL被注入到JVM原生层,导致内存访问冲突(错误代码0xc0000005)。经排查发现此文件来自Astrill软件。解决方案为卸载Astrill后重启电脑,问题得以解决。该案例表明第三方DLL注入可能影响IDE正常运行,卸载相关软件是最直接的解决方法。(149字)

猿小白的博客 947

C 和 C++ 中主函数调用其他文件中的函数,实现代码重用

C 和 C++ 中主函数调用其他文件中的函数,实现代码重用

kklv__lo的博客 1658

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

android 与c的调用函数,如何从C文件调用CPP文件中的函数,反之亦然在ANDROID NDK中?...

我无法从c文件中调用cpp文件中的函数,也无法从ndk中的cpp文件中调用c文件中的函数。如何从C文件调用CPP文件中的函数,反之亦然在ANDROID NDK中?我尝试使用extern“C”{}。粘贴代码我在这里试过以供参考。CFileCallingCpp.c:#include "CFileCallingCpp.h"//#include "custom_debug.h"#include "CppF...

weixin_28622215的博客 462

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

在C++中调用C文件中的函数

有时候在C++工程中可能需要将某些函数按照C的风格来编译,在函数前加extern “C”,意思是告诉编译器,将该函数按照C语言规则来编译。 比如在创建好的C++test.cpp文件中想要调用另一个C的函数,流程分为以下几个步骤。 1.将C文件生成lib 首先创建C的静态库文件 2.在C中写C++即将需要的函数的 .c与 .h文件 3.生成解决方案后可以在Debug文件夹看到.lib文件 4.在C++文件中进行如下配置 5.利用extern"C"包含C的头文件 …是回到当前目录的上

jiaao666的博客 2361

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

C\C++调用另一个源文件中的函数

C\C++调用另一个源文件中的函数 回调函数法——利用函数指针 源文件 ‘main.c’ #include&amp;amp;amp;amp;lt;stdio.h&amp;amp;amp;amp;gt; void run(); //*声明将要用到的函数(最重要的一步)* extern void (*step)(void); //先声明一个全局变量(函数指针) void mystep_cb(void) { printf(&amp;amp;amp;quot;我要输出\n

雾胡的博客 1万+

C++学习——在C文件中调用C++文件中的函数

1.cpp文件中的内容 #include "mytest.h" #include <iostream> using namespace std; int add(const int a, const int b) { cout << "a=" << a << endl; cout << "b=" << b << endl; return (a + b); } 2.hpp文件中的内容 在函数声明时

qq_38292379的博客 809

C++调用C文件函数简单应用

通常情况下,编程都是用同种语言(或说格式),这样不大会出现不同语言这间的错误 下边介绍一下,在C++语言(.cpp文件)下调用C语言(.c文件)的一种方法(下边分别是三个文件): /*Duke.cpp,编译环境:VC6.0*/ #include #include "Duke.h"//包含.c的头文件(下边用到.c里的add函数) using namespace std; int main(

任逍遊 --- [专用空间] 1万+

【C++】四、inline函数、C/C++相互调用

一、inline函数 (一)inline函数的概念 (二)inline函数 && 宏 (三)inline函数 && static (四)inline函数 && 普通函数 (五)内联函数的缺点及使用建议 (五)内联函数的限制 二、C/C++相互调用 (一).cpp文件中调用.c文件中的函数 (二).c文件中调用.cpp文件中的函数 1. .cpp源文件允许修改 2. .cpp源文件不允许修改

qq_43411555的博客 1369

cpp无法调用c代码(重载机制)

当main.c test.c 都是纯c文件编译和连接没问题正常运行 main.c #include <stdio.h> #include <stdlib.h> #include "test.h" int main() { show(); // printf("jshdfg"); system("pause"); } test.c #include <stdio.h> #include "test.h" void show() {

qq_45113203的博客 937

cpp文件调用c文件中的函数编译出现:undefined reference to `c_function()'

背景: 存在如下的c文件中定义一个函数: c_file.c int c_function(void) { int a = 0, b = 0; xxxxx return 0; } c_file.h #ifndef __C_FILE__ #define __C_FILE__ xxxxx int c_function(void); xxxxx #endif ...

仗劍走天涯 6660

解决问题 #000_调用外部源文件中的函数

调用外部函数 方法一:main.c + fun.c 函数如果知定义在本.c文件中, 或者定义在一个.h文件中并且本.c文件#include了这个.h就不用加extern,因为这两种情况下本.c文件都可以直接找到 一旦有一个函数定义在另一个.c文件中,而你要想在本.c文件中使用的时候就必须用extern关健字道声明一下,否则链版接会出错。 extern的作用就是告诉链接器,在这个工程中的某一个.obj文件中有extern修饰的后边这函数,这样链权接器就可以正常工作了。否则链接器在本.obj文件中找不到你后边

Kenneth_J9532的博客 385

lua 调用文件中的函数调用_如何正确的在C/C++里调用Lua

序言涉及关键词:WSL 、Lua、GCC 、C/C++声明:本文不对lua,wsl,gcc的安装配置进行教学。先来看看百度百科是怎么定义lua的Lua 是一个小巧的脚本语言。 其设计目的是为了通过灵活嵌入应用程序中从而为应用程序提供灵活的扩展和定制功能。Lua由标准C编写而成,Lua脚本可以很容易的被C/C++ 代码调用,也可以反过来调用C/C++的函数,这使得Lua在应用程序中可以被广泛应用。...

weixin_39856208的博客 353

2024年C C++最新C++之函数重载_c++函数重载,零基础C C++

ifdef __cplusplus//如果是cpp文件,就用C的规则找。

2401_84976700的博客 208
上一篇: strcat函数使用中注意!
下一篇: unsigned char*和string和unsigned char[]的相互转换
wincent1
博客等级 码龄9年 3156粉丝 11原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值