随笔分类 -  C++

c/c++ ABI
摘要:C++ ABI总结 https://zhuanlan.zhihu.com/p/577996608 Itanium C++ ABI https://itanium-cxx-abi.github.io/cxx-abi/ ABI Policy and Guidelines https://gcc.gnu. 阅读全文

posted @ 2023-04-11 10:15 lh03061238 阅读(39) 评论(0) 推荐(0) 编辑

C++空结构体
摘要:C++: What is the size of an object of an empty class? https://stackoverflow.com/questions/621616/c-what-is-the-size-of-an-object-of-an-empty-class Emp 阅读全文

posted @ 2023-04-10 11:37 lh03061238 阅读(89) 评论(0) 推荐(0) 编辑

c++调用.so库
摘要:参考: https://blog.csdn.net/weixin_45024226/article/details/120156687 https://blog.csdn.net/weixin_40437821/article/details/110671132 阅读全文

posted @ 2023-03-17 10:42 lh03061238 阅读(94) 评论(0) 推荐(0) 编辑

C语言有符号数和无符号数的左移和右移
摘要:参考:https://blog.csdn.net/xiaohuihui1994/article/details/110498343?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~ 阅读全文

posted @ 2022-12-30 15:22 lh03061238 阅读(38) 评论(0) 推荐(0) 编辑

操作数栈
摘要:操作数栈(Operand Stack) https://www.jianshu.com/p/c0f267ff3a2d 操作数栈(Operand Stack) https://blog.csdn.net/z318913/article/details/123004876?utm_medium=dist 阅读全文

posted @ 2022-08-06 15:54 lh03061238 阅读(25) 评论(0) 推荐(0) 编辑

setjmp.h 文件解析与使用
摘要:参考: setjmp.h 文件详解 https://my.oschina.net/wxwHome/blog/51311 C 标准库 - <setjmp.h> https://blog.csdn.net/qq_38131668/article/details/78662137 setjmp和longj 阅读全文

posted @ 2022-06-07 10:09 lh03061238 阅读(57) 评论(0) 推荐(0) 编辑

符号位扩展
摘要:在C中从24位到32位的有符号扩展 https://www.icode9.com/content-4-481282.html 阅读全文

posted @ 2022-05-19 15:50 lh03061238 阅读(21) 评论(0) 推荐(0) 编辑

C语言中有符号/无符号数的左移和右移运算
摘要:参考: https://blog.csdn.net/u012745229/article/details/51405332 https://blog.csdn.net/xiaoyue_/article/details/115220273?spm=1001.2101.3001.6650.1&utm_m 阅读全文

posted @ 2021-12-09 13:22 lh03061238 阅读(245) 评论(0) 推荐(0) 编辑

C++中Struct与Class的区别与比较
摘要:https://blog.csdn.net/weixin_39640298/article/details/84349171 https://www.cnblogs.com/ccsccs/articles/4025215.html 阅读全文

posted @ 2020-09-26 20:54 lh03061238 阅读(151) 评论(0) 推荐(0) 编辑

C++嵌套类(内部类与外部类)
摘要:https://blog.csdn.net/liyuanbhu/article/details/43897979 https://blog.csdn.net/c1392851600/article/details/85332435 阅读全文

posted @ 2020-09-26 20:46 lh03061238 阅读(228) 评论(0) 推荐(0) 编辑

关于C和C++不同源文件中重名变量的问题(转)
摘要:原文:https://blog.csdn.net/u014454069/article/details/22613271 阅读全文

posted @ 2020-07-07 18:01 lh03061238 阅读(384) 评论(0) 推荐(0) 编辑

C++ const_cast用法(转)
摘要:参考原文:https://www.cnblogs.com/teng-IT/p/5981294.html const_cast是一种C++运算符,主要是用来去除复合类型中const和volatile属性(没有真正去除)。 变量本身的const属性是不能去除的,要想修改变量的值,一般是去除指针(或引用) 阅读全文

posted @ 2020-06-15 10:16 lh03061238 阅读(1272) 评论(0) 推荐(0) 编辑

构造函数和析构函数可以调用虚函数吗(转)
摘要:原文:https://blog.csdn.net/weixin_41066529/article/details/89496385?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2- 阅读全文

posted @ 2020-06-12 09:31 lh03061238 阅读(435) 评论(0) 推荐(0) 编辑

C++之迭代器(Iterator)篇 (转)
摘要:原文;https://blog.csdn.net/CSDN_564174144/article/details/76231626 参考 : https://blog.csdn.net/qq_23100787/article/details/51388163 迭代器(Iterator)的介绍背景:指针 阅读全文

posted @ 2020-06-11 16:26 lh03061238 阅读(660) 评论(0) 推荐(0) 编辑

C++中typename关键字的使用方法和注意事项
摘要:参考 https://blog.csdn.net/vanturman/article/details/80269081 https://www.cnblogs.com/wanmeishenghuo/p/9601768.html 阅读全文

posted @ 2020-06-09 14:15 lh03061238 阅读(188) 评论(0) 推荐(0) 编辑

普通new和placement new的重载(转)
摘要:原文:https://www.cnblogs.com/wanmeishenghuo/p/9651363.html 参考: https://www.jb51.net/article/41331.htm https://blog.csdn.net/windgs_yf/article/details/81 阅读全文

posted @ 2020-06-09 10:44 lh03061238 阅读(231) 评论(0) 推荐(0) 编辑

C++:从完整路径中提取文件名、不带后缀的名字、后缀名(转)
摘要:原文:https://blog.csdn.net/jumencibaliang92/article/details/99051140 目的:从完整路径中提取文件名、不带后缀的名字、后缀名 如下: 【注】:完整路径以“\\”分隔; 要点: 1. s.substr(0,5):获得字符串s中从第0位开始, 阅读全文

posted @ 2020-06-03 17:22 lh03061238 阅读(6338) 评论(0) 推荐(0) 编辑

21 线性表的链式存储结构
摘要:原文:https://www.cnblogs.com/wanmeishenghuo/p/9643496.html 参考狄泰软件相关课程 顺序存储结构线性表的最大问题是: 插入和删除需要移动大量的元素。 链式存储结构: 插入元素图解: current先指向头结点,在第几个位置插入元素,就向后移动几次。 阅读全文

posted @ 2020-06-01 14:34 lh03061238 阅读(142) 评论(0) 推荐(0) 编辑

C++中Struct与Class的区别与比较(转)
摘要:原文:https://blog.csdn.net/weixin_39640298/article/details/84349171 概述之前只知道在C++中类和结构体的区别只有默认的防控属性(访问控制)不同,struct是public的,而class是private的。但经过上网查资料才发现,除了这 阅读全文

posted @ 2020-06-01 14:13 lh03061238 阅读(356) 评论(0) 推荐(0) 编辑

c++之函数值传递和引用传递解析----关键在于理解函数return的实现机制(内存分配) 转
摘要:原文:https://www.cnblogs.com/cthon/p/9176641.html 函数调用过程解析 func里的a存储在调用fun函数时开辟的栈空间里,这块栈只在调用func时对func可用,调用结束后返回的a,其实是暂存在寄存器里的(一般情况下是eax),而返回到main里时,mai 阅读全文

posted @ 2020-05-29 13:49 lh03061238 阅读(353) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示