浅析C++const

[C++中】const常量与define宏定义的区别 较详细地介绍了const常量与宏定义的区别 立即下载

1.值替代

在使用宏#define进行常量替换时,仅仅只是文本替代,不进行类型检查。

#define  BUFFSIZE  100
int  buf[BUFFSIZE]
进行预处理

kernel@Ubuntu:~/Desktop/const$ cpp const.cpp const.i
kernel@Ubuntu:~/Desktop/const$ cat const.i
# 1 "const.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "const.cpp"


int buf[100];

BUFFSIZE只是一个名字,它在预处理的时候存在,在编译的时候不对该符号进行维护,也就是BUFFSIZE符号消失了。因此它不占用存储空间,仅仅在预处理期间就进行值替代,目的是为使用它的所有编译单元提供一个值。但是由于在编译的时候就是一个单纯的值,而且没有类型,如果出现不可思议的数,并不清楚这个数来自哪里。因此使用C++ const把值替代带到编译器阶段来消除这个问题,并不在预处理器阶段就进行值替代。

const in buffsize = 100;

这样编译的时候,编译器需要知道这个值在何处使用,同时编译器还可以执行常量折叠,把一个复杂的表达式进行简单化处理。在编译器看作为一个常量,把buffsize当作一个符号,并存放在符号表中,不给buffsize分配空间。

常量折叠

int main(void) {
    const int buffsize = 100;
    int i = buffsize;
    int j = 99;
    int k = j;
}<strong>
</strong>

对上面程序const.cpp进行编译链接生成可执行目标文件const,对const进行反汇编。

00000000004004ed <main>:
int main(void) {
  4004ed:	55                   	push   %rbp
  4004ee:	48 89 e5             	mov    %rsp,%rbp

    const int buffsize = 100;
  4004f1:	c7 45 f0 64 00 00 00 	movl   $0x64,-0x10(%rbp)
    int i = buffsize;
  4004f8:	c7 45 f4 64 00 00 00 	movl   $0x64,-0xc(%rbp)
    int j = 99;
  4004ff:	c7 45 f8 63 00 00 00 	movl   $0x63,-0x8(%rbp)
    int k = j;
  400506:	8b 45 f8             	mov    -0x8(%rbp),%eax
  400509:	89 45 fc             	mov    %eax,-0x4(%rbp)
}

const运行时,在对变量 i 进行赋值操作直接进行常量折叠,相当于直接把一个常量放入到一个i的栈空间。而非const的变量则需要进行从栈中取j的值,再放入寄存器eax中,从eax寄存器取出其值放入到i所在的栈空间。

2 头文件中的const

如果const为全局变量,则在编译后,将const修饰的符号的存放在.symtab的符号表中,但是const默认为内部链接,该符号为本地符号,不能被其他目标模块所引用,不会造成链接时的冲突。如需要引用加上extern进行引用。

不使用extern进行外部链接,buffsize的符号条目如下

6: 0000000000000000     4 OBJECT  LOCAL  DEFAULT    4 _ZL8buffsize

可见buffsize是一个本地符号,不可以被其他模块引用。

使用extern进行外部链接

extern const int buffsize = 100;
9: 0000000000000000     4 OBJECT  GLOBAL DEFAULT    4 buffsize

此时buffsize是一个全局符号,可以被其他模块引用。

C++ 编译器一般不为const成员分配存储空间,但是当使用了extern修饰const成员,其他模块会引用这个成员,所以会强制分配存储空间,但用extern声明const会阻止常量折叠。在对const成员进行取地址的时候,也会在分配空间。

3. C与C++ const的区别

(1)在C++中可以有如下定义:

const int buffsize = 100;
int buf[buffsize] = {0};

允许将一个定义为常量的变量当作数组的大小。C++中const在编译阶段被看作为一个常量,并不分配空间,并将其值存放在符号表中,在适当的时候进行常量折叠。

但是在C中,如果按照上述的定义会出现如下错误:

const.c:7:5: error: variable-sized object may not be initialized
     int buf[buffsize] = {0};

因为在C中,const修饰的是一个不可改变的变量,会在运行时分配内存。所以编译器不知道编译时buffsize的值。

(2)C中可以有有如下定义:

const int buffsize;

C编译器把它看做为一个声明,这样在C++的做法是不对的。在C中const为外部链接,声明上面的形式,如果外部有一个定义,则该模块可以引用。

而C++默认为内部链接,如果要进行如上声明,需要加上extern。

extern const int buffsize;

(3)C++中,编译器会把const看成一个符号,放入到符号表,通常不会给const分配空间,执行常量折叠。如果定义为全局变量也不会分配空间。而C中,一个const总是要占用内存空间。当const修饰的为全局符号且外部模块需要引用本地的const时,const默认为内部链接,需要加上extern,并且此时编译器强制为const分配空间,由于是const定义,可以进行常量折叠。对const进行&操作,也会为const分配空间。

#include <stdio.h>
int main(void) {
    const int i = 100;
    int * p = (int *)&i;
    *p = 99;
    printf("%p, %p, %d, %d\n", &i, p, i, *p);
}

分别使用gcc和g++进行编译。

kernel@Ubuntu:~/Desktop/const$ g++ -g const.c -o const
kernel@Ubuntu:~/Desktop/const$ ./const 
0x7ffd5b36fa74, 0x7ffd5b36fa74, 100, 99
kernel@Ubuntu:~/Desktop/const$ gcc -g const.c -o const
kernel@Ubuntu:~/Desktop/const$ ./const 
0x7ffd74dd4154, 0x7ffd74dd4154, 99, 99

当使用g++编译的时候,虽然p和i的地址相同,但是i和*p的值不一样。因为在编译阶段,没有对const分配空间,对const进行了常量折叠,将i用100来代替,也就是说i自身变为了100,并不是其空间存放了100。虽然用&i分配了一个内存空间,使用指针对其指向的内容进行了赋值。但是i的值不会变,内存空间里的值会改变。

因为C总是要为const分配一个空间,所以指针p指向的空间,就是存储i值的空间,因此在指针更改其指向空间的值的时候,i的值也被改变。

注:在用const int *对int * p进行赋值时,要将const int *强制转化为int *,否则c++编译会报错,而c会报警告。

kernel@Ubuntu:~/Desktop/const$ gcc -g const.c -o const
const.c: In function ‘main’:
const.c:7:15: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
     int * p = &i;	
kernel@Ubuntu:~/Desktop/const$ g++ -g const.c -o const
const.c: In function ‘int main()’:
const.c:7:16: error: invalid conversion from ‘const int*’ to ‘int*’ [-fpermissive]
     int * p = &i;

用Origin快速拟合荧光寿命、PL Decay (TRPL)数据分析处理 阅读详情

相关推荐

ARM架构下Horizon Client安装全攻略:从依赖检查到环境变量配置

本文详细介绍了在ARM架构设备上安装VMware Horizon Client的全过程,包括依赖检查、软件包获取、系统部署和环境变量配置。特别针对华为鲲鹏等ARM平台,提供了从基础准备到性能优化的完整指南,帮助用户高效完成虚拟桌面客户端的部署与调优。

github5actions的博客 557

libcxx memory中智能指针的实现

概述 libcxx 中 shared_ptr 本身只是一个代理类,C++11 的泛型都是用模板实现的。 shard_ptr、unique、weak_ptr 这3个类的实现都是在memory 文件中。 属于使用时,用#include <memory>声明类型 原理 memory文件包含memory接口和内部逻辑,例如shard_ptr、unique、weak_ptr属于接口 shared_ptr实现 shared_ptr实现就是内部控制一个引用计数器 make_shared的实现 make_sh

liu-yonggang的专栏 754

STM32F103C8T6驱动DM542步进电机:从CubeMX配置到按键控制的全流程避坑指南

本文详细介绍了如何使用STM32F103C8T6通过CubeMX配置驱动DM542步进电机的全流程,包括PWM频率计算、GPIO模式选择及按键控制实现。重点解决了常见硬件连接错误、PWM参数配置及加减速算法优化,帮助开发者快速搭建稳定的电机控制系统。

weixin_42741930的博客 308

鸿蒙5.0版开发:分析CppCrash(进程崩溃)

本文将分别介绍进程崩溃检测能力、崩溃问题定位分析思路,以及具体的案例分析。

m0_73088370的博客 4872

告别CPU空转!用STC8的SPI+DMA高效驱动上百颗WS2812B灯珠

本文详细解析了如何利用STC8单片机的SPI+DMA外设高效驱动WS2812B全彩灯珠,解决传统软件延时驱动方式在长灯带应用中的性能瓶颈。通过硬件方案设计、数据格式转换和DMA传输配置,实现高达400Hz的刷新率和低于5%的CPU占用率,适用于大规模灯光项目。

weixin_30847939的博客 398

【通信原理 入坑之路】—— 详解IQ调制以及星座图原理

文章目录一. IQ调制与解调的原理与过程二.PSK(相移键控)和IQ调制的关系:2.1 用IQ调制实现QPSK调制 一. IQ调制与解调的原理与过程 IQ调制的定义是:“IQ调制就是数据分为两路,分别进行载波调制,两路载波相互正交。I是in-phase(同相), q是 quadrature(正交)” 我们通过下面的示意图介绍IQ调制的过程: 首先,信号分成两路:I路和Q路(为了方便理解我们把这两...

凝望,划过星空的博客 11万+

error: variable-sized object may not be initialized(变量大小的对象不能初始化)

其报错的主要原因是因为,不可在定义数组时,同时进行初始化赋值,需要在之后进行赋值。

XING_Gou的博客 1万+

ncode控件使用总结

数据格式txt转s3t #HEADER #TITLES Absolute_Time,COG_Ax,COG_Ay,COG_Az,LF_SPINDLE_AZ #UNITS ,g,g,g,g, #DATATYPES Double,Float,Float,Float,Float #DATA 2. 导入s3t数据 3. 输入数据控件 直接拖入数据源或者添加控件数据 4.

技术联盟 2007

编译错误Variable-sized object may not be initialized 出现的原因及解决措施

编译错误Variable-sized object may not be initialized 出现的原因及解决措施 出现此错误的原因是可以用变量定义数组长度,但不可初始化。 不用变量初始化后的结果为: 错误消失

只须一笑不须愁X的博客 2万+

【WRF数据准备】基于GEE下载静态地理数据(叶面积指数LAI及绿色植被率Fpar)及二进制转化

基于GEE下载静态地理数据(叶面积指数LAI及绿色植被率Fpar)及二进制转化

WW、forever的博客 166

NR TA

这篇是NR TA的笔记,之前有对R17 NTN TA进行了简单总结,但是也仅仅局限在NTN部分,其他TA基本过程没有涉及,这篇是针对R16版本协议对NR TA相关内容做的总结。和PUSCH power control过程类似,NR TA也可以分为开环 和闭环调整,相关内容分散在38.300,38.211,38.213,38.321,38.133和38.331。后面就按照38.300 TA相关概念,38.211中有关TA定义,38.213 TA 相关内容,38.321 TA控制过程,38.133 Timi

ModemProtocol的博客 770

编译错误:variable-sized object may not be initialized

编译错误:variable-sized object may not be initialized

Haomione的博客 1492

芒果YOLOv5改进55:损失函数篇之KLD:即插即用 芒果首发原创新颖|全网唯一更新KLD改进博客,通过 Kullback-Leibler 散度学习用于目标检测的高精度边界框,提升YOLOv5小目标

YOLOv5改进KLD损失函数:即插即用 原创新颖|芒果专栏独家首发

包括YOLOv5、YOLOv7、YOLOv8等模型改进 665

C++ const浅析

对指针来说 const 放在变量的左边既是修饰这个变量,例如 p1指向了 int 型变量 i 的地址,那么这个就是顶层 const (因为变量本身就是最外层了也就是顶层),此时不可以再指向其它地址,但是我们可以通过解引用的方式去改变指向 int 型变量 i 的值(解引用后便是 p1 的内部,也就是变量 i 的地址)。如果 const 放在类型的左边,即底层 const ,此时修饰的是。,不可以更改所指向对象的值,

weixin_45560920的博客 330

深度学习工具包 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")

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

C++中const用法浅析

看到const 关键字,很多程序员想到的可能是const 常量,这可有点象踩到陷井上还不知道自己危险了。读读以下文字会使你对c++中的const有一个全面的认识。const 是C++中常用的类型修饰符,有某些微妙的应用场合,如果没有搞清本源,则错误在所难免。本篇中将对const进行辨析。溯其本源,究其实质,希望能对大家理解const有所帮助,根据思维的承接关系,分为如下几个部分进行阐述。C

yangfengby0909的专栏 408

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

C/C++ const 浅析

1. C中的const     C中的常量总是占用存储,而且他的名字是全局符。C编译器不能把const看作编译期间的常量。     eg:         const int buffersize = 100;         char buffer[buffersize];     上述代码是错误的。 2. C++中的const

1804

C++const用法浅析

Const用法浅析  1. const修饰普通变量和指针const修饰变量,一般有两种写法:const TYPE value;TYPE const value;这两种写法在本质上是一样的。它的含义是:const修饰的类型为TYPE的变量value是不可变的。对于一个非指针的类型TYPE,无论怎么写,都是一个含义,即value只不可变。例如:const int nValue;

JonsenElizee 6553

浅析C/C++中const

const

Hello World! 1378

C++的顶层const和底层const浅析

下面这段转载来源:http://blog.youkuaiyun.com/qq_19528953/article/details/50922303 最近,又一次翻开C++primer,决定仔细研究一下自己以前没搞懂的顶层const和底层const,这次看了后感觉明白了,所以记录下来,以后可以没事翻阅,增加记忆。首先,const是一个限定符,被它修饰的变量的值不能改变。对于一般的变量来说,其实没有顶层const和...

我的博客 467

C++_const_浅析

const简单理解constconst的作用const的不同修饰变量修饰指针函数使用类中使用记忆小技巧参考资料 简单理解const 我们经常使用到const,简单来说,const就是不允许改变的意思。 C语言中的const: 它限定一个变量不允许被改变,产生静态作用。 C++中的const: const 限定符,它把一个对象转换成一个常量。 const的作用 1)欲阻止一个变量被改变,可使用const,在定义该const变量时,需先初始化,以后就没有机会改变他了; 2)对指针而言,可以指定指针本身为co

YY_Song 's blogs 337

c++ const浅析

看到const 关键字,很多程序员想到的可能是const 常量,这可有点象踩到陷井上还不知道自己危险了。读读以下文字会使你对c++中的const有一个全面的认识。 const 是C++中常用的类型修饰符,有某些微妙的应用场合,如果没有搞清本源,则错误在所难免。本篇中将对const进行辨析。溯其本源,究其实质,希望能对大家理解const有所帮助,根据思维的承接关系,分为如下几个部分进行阐述。

lvmengmeng 728
上一篇: 静态链接之与静态库的链接
下一篇: C++ 继承
SegmentFault_
博客等级 码龄11年 6粉丝 26原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值