• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






hddkman

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

文章分类 -  c++

 
段错误调试神器 - Core Dump详解
摘要:一、前言: 有的程序可以通过编译, 但在运行时会出现Segment fault(段错误). 这通常都是指针错误引起的. 但这不像编译错误一样会提示到文件某一行, 而是没有任何信息, 使得我们的调试变得困难起来. gdb: 有一种办法是, 我们用gdb的step, 一步一步寻找. 这放在短小的代码中是 阅读全文
posted @ 2021-03-01 14:23 hddkman 阅读(320) 评论(0) 推荐(0)
html设置网页标题栏logo(图标)
摘要:https://blog.csdn.net/dsdsds111/article/details/86713155?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control&depth_1-utm_s 阅读全文
posted @ 2021-01-13 17:31 hddkman 阅读(2864) 评论(0) 推荐(0)
probuf
摘要:https://www.cnblogs.com/orangeform/archive/2013/01/08/2845994.html Protocol Buffer技术详解(语言规范) 该系列Blog的内容主体主要源自于Protocol Buffer的官方文档,而代码示例则抽取于当前正在开发的一个公 阅读全文
posted @ 2021-01-12 17:31 hddkman 阅读(274) 评论(0) 推荐(0)
probuf
摘要:https://www.cnblogs.com/orangeform/archive/2013/01/04/2842533.html 阅读全文
posted @ 2021-01-12 17:24 hddkman 阅读(51) 评论(0) 推荐(0)
详解protobuf-从原理到使用
摘要:转自:https://www.jianshu.com/p/419efe983cb2 protobuf是google团队开发的用于高效存储和读取结构化数据的工具。什么是结构化数据呢,正如字面上表达的,就是带有一定结构的数据。比如电话簿上有很多记录数据,每条记录包含姓名、ID、邮件、电话等,这种结构重复 阅读全文
posted @ 2021-01-12 15:35 hddkman 阅读(973) 评论(0) 推荐(0)
warning: ISO C++ forbids converting a string constant to 'char*'
摘要:转:https://www.cnblogs.com/rainbow70626/p/10311977.html 第1种字符串赋值方式: char * fileName="./2017-09-02-10-34-10.xml";//这一种字符串赋值方式已经被ISO禁止了 第2种字符串赋值方式: char 阅读全文
posted @ 2021-01-12 14:39 hddkman 阅读(473) 评论(0) 推荐(0)
C++多态和虚函数快速入门教程
摘要:C++多态和虚函数快速入门教程 在《C++将派生类赋值给基类(向上转型)》一节中讲到,基类的指针也可以指向派生类对象,请看下面的例子: #include <iostream> using namespace std; //基类People class People{ public: People(c 阅读全文
posted @ 2021-01-12 12:12 hddkman 阅读(121) 评论(0) 推荐(0)
运算符重载为成员函数
摘要:转自:https://www.runoob.com/cplusplus/increment-decrement-operators-overloading.html 重载为类成员的运算符函数定义形式 函数类型 operator 运算符(形参) { ...... } 参数个数=原操作数个数-1 (后置 阅读全文
posted @ 2021-01-06 11:49 hddkman 阅读(917) 评论(0) 推荐(0)
转自c++临时变量
摘要:转自https://blog.csdn.net/joey_zengchen/article/details/1566713 https://blog.csdn.net/qq_38193597/article/details/70193742 https://blog.csdn.net/wxn7044 阅读全文
posted @ 2020-12-30 13:46 hddkman 阅读(105) 评论(0) 推荐(0)
C++中类的(static)静态成员变量与(static)静态成员函数
摘要:C++中类的(static)静态成员变量与(static)静态成员函数 转自:https://blog.csdn.net/lms1008611/article/details/81408236?utm_medium=distribute.pc_relevant.none-task-blog-baid 阅读全文
posted @ 2020-12-29 20:53 hddkman 阅读(155) 评论(0) 推荐(0)
string 和char相互转化
摘要:转自https://www.cnblogs.com/wuyepeng/p/9729943.html 1. string转const char* 1 2 string s ="abc"; const char* c_s = s.c_str(); 2. const char*转string 直接赋值即可 阅读全文
posted @ 2020-12-22 17:01 hddkman 阅读(149) 评论(0) 推荐(0)
转 C++函数模板(模板函数)详解
摘要:转自:https://blog.csdn.net/low5252/article/details/94622335 C++函数模板(模板函数)详解 定义 用法: 函数模板的原理 延申用法 2.1为什么需要类模板 2.2单个类模板语法 2.3继承中的类模板语法 案例1: 案例2: 2.4类模板的基础语 阅读全文
posted @ 2020-12-22 15:52 hddkman 阅读(104) 评论(0) 推荐(0)
C++中模板使用详解 转
摘要:转自:http://www.360doc.com/content/09/0403/17/799_3011262.shtml 1. 模板的概念。 我们已经学过重载(Overloading),对重载函数而言,C++的检查机制能通过函数参数的不同及所属类的不同。正确的调用重载函数。例如,为求两个数的最大值 阅读全文
posted @ 2020-12-22 12:11 hddkman 阅读(83) 评论(0) 推荐(0)
转载 c++类成员函数作为回调函数
摘要:一直以来都被回调函数的定义给整蒙了。最近又仔细学了会,感觉回调函数,我认为就是将一个函数指针A作为参数传入另外一个函数B,然后在函数B中调用函数A。 普通回调 具体先看一个简单的例子: [cpp] view plain copy #include<stdio.h> void printWelcome 阅读全文
posted @ 2020-12-21 16:27 hddkman 阅读(1197) 评论(0) 推荐(0)
c++关于typedef定义类成员函数指针
摘要:这种用法很少见,但确实存在,而且很不好理解,用法如下: #include <iostream> class foo { public: int g (int x, int y) { return x + y ; } } ; typedef int (foo::*memberf_pointer)(in 阅读全文
posted @ 2020-12-21 16:10 hddkman 阅读(317) 评论(0) 推荐(0)