上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 博客园定制CSS代码 禁用模板默认 CSS 。 CSS 代码框中,填写定制 CSS 代码。 定制的 CSS 代码中,如果缺少 home 项,需要进行添加,home 项范例如下: 其中 width 项的值控制页面宽度 #home { //opacity: 1.0; margin: 0 auto; wi 阅读全文
posted @ 2021-11-01 22:05 ltimaginea 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 博客园定制CSS代码,设置页面宽度 下面CSS代码中, width 项的值控制页面宽度 #home { //opacity: 1.0; margin: 0 auto; width: 75%; min-width: 70%; //background-color: #fff; padding: 30p 阅读全文
posted @ 2021-11-01 20:32 ltimaginea 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 原始指针 捕获所有异常 避免内存泄漏 原始指针 避免内存泄漏 程序使用 raw pointer 时,资源往往被显式管理(managed explicitly)。以此方式使用 raw pointer 的典型例子是,以 new 和 delete 创建和销毁对象: void Foo() { Widget* 阅读全文
posted @ 2021-10-30 20:52 ltimaginea 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 析构函数 destructor 私有析构函数 private destructor 析构函数是 private 时,那么当对象销毁时或对于动态分配的对象,当对指向它的指针应用 delete 运算符时,只有 对象销毁 所处的上下文环境为成员函数体或友元函数体内部时,才能正常调用 private 析构函 阅读全文
posted @ 2021-10-20 17:25 ltimaginea 阅读(647) 评论(0) 推荐(0) 编辑
摘要: C++ 单例模式 Singleton Singleton 保证一个类仅有一个实例,并提供一个访问它的全局访问点。 实现要点 构造函数应该声明为非公有,从而禁止外界创建实例。 拷贝操作和移动操作也应该禁止。 只能通过 Singleton 的公有特定类操作访问它的唯一实例(C++中的一个公有静态成员函数 阅读全文
posted @ 2021-10-12 23:12 ltimaginea 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Google Style Guides Google Style Guides Google 开源项目风格指南 (zh-google-styleguide.readthedocs.io) 阅读全文
posted @ 2021-10-12 21:19 ltimaginea 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Markdown For Typora Overview Markdown is created by Daring Fireball; the original guideline is here. Its syntax, however, varies between different par 阅读全文
posted @ 2021-10-11 17:52 ltimaginea 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Markdown Syntax Images Admittedly, it’s fairly difficult to devise a “natural” syntax for placing images into a plain text document format. Markdown u 阅读全文
posted @ 2021-10-11 17:40 ltimaginea 阅读(29) 评论(0) 推荐(0) 编辑
摘要: VS Code Just My Code Debugging 😭 VS Code for C++ doesn't support Just My Code Refer here: Add support for "Just My Code" debugging · Issue #5763 · mi 阅读全文
posted @ 2021-10-03 17:37 ltimaginea 阅读(459) 评论(0) 推荐(0) 编辑
摘要: Just My Code debugging During a debugging session, the Modules window shows which code modules the debugger is treating as My Code (user code), along 阅读全文
posted @ 2021-10-03 13:34 ltimaginea 阅读(40) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页