文章目录
- hello world
- g++ 编译参数
- MSVC 编译器参数
- inline - /Ob (Inline Function Expansion)
- Compiler optimizations
- define & g++ -D
- g++ -U & -D
- #pragma once
- Preprocessor directives
- NULL & nullptr
- typeid
- size .\out.exe or .\out.out
- cout align
- console output text color & 变长参数
- 示例1
- 示例2
- numeric_limits min, max
- extern c/c++ test
- array
- 2d array to pointer
- my_vec3 to float*
- pointer - 指针
- shared_ptr - 只能指针
- string test
- string raw define
- stringstream
- char* init by multi char* - 字符串以多个字符串初始化
- volatile 关键字详解
- const 常量
- constexpr
- C++ compiler & runtime std version
- lambda
- struct & class refer to params for pass to func
- struct, class mem layout - 内存布局
- dynamic_cast & force cast
- Static_cast 与 Dynamic_cast的区别
- class - override kinds of operators
- 可重载
- 不可重载
- class friend
- class static memeber
- class virtual func
- class multi inherit
- multi_inherit_ctor_dector
- class static
- new、operator new、placement new
- enum
- pair
- get
- complex
- set
- set - 插入、删除、初始化、遍历、查找、清除
- map
- map 插入、查找、遍历
- vector
- #define,typedef,using用法区别
- macros nested - 宏嵌套
- pragma - 编译指令
- #pragma message("compiling output message") - 编译输出信息
- #pragma pack
- fstream, ofstream, ifstream
- C++ seekp和seekg函数用法详解
- 一次读完
- try...catch.../exception
- GDB 调试输出更信息的信息
- namespace - 命名空间
- template function/class
- typename 与class区别
- thread / mutex
- g++ 编译报错
- VS C++没有这个问题
- 网上查了,大概是编译器的问题
- 测试thread / mutex / atomic
- scope - 作用域
- move、forward
- Calling Conversion - 调用约定
- __declspec - 规范定义
- Debugging C++ Source Code using GDB in Windows
- 错误、异常处理
- LNK 2019
- C++ “void std::sort(const _RanIt,const _RanIt)”: 应输入 2 个参数,却提供了 3 个 - 已解决
- C++ 实例
- C++ rand 随机数
- judge basic type or data is signed or not - 判断有符号和无符号的变量或类型[C/C++]
- 获取工作空间目录或获取运行程序目录
- 使用
- FindWindow - 查找窗体句柄
- 注意 L"this is wchar" 来声明该字符串是 wchar_t的
- 查找窗体
- std::cout 输出10进制与16进制的控制
- C++ 实例 - 求一元二次方程的根
- 根的判别式
- C++ ASM
- C++ 逆向反汇编
- 1.1
- NASM
- MARS - 更方便学习ASM的工具
- MARS 官网
- MARS - youtube 视频教程
- MARS 简单教程 / 功能
- 汇编入门(长文多图,流量慎入!!!)
- C++面试
- 内存泄露
- Refernces
晴天霹雳你觉得很惊讶吗?
哈哈哈,我可是天天都看到各种霹雳!早已习空见惯了。
从大学出来就由于工作原因一直没再使用C++。(大学的时候,我们老师可是极力推荐C#)
工作、规划需要,是时候重温回来了。
C++其实也是很简单的,每个部分都很简单,但是因为语言特性非常的多,需要时间熟悉与记忆。
hello world那就从最开始的 hello world 出发。
#include
int main() {
std::cout
关注
打赏
热门博文
- 3D Assets (Textures & Model & Animations) & Game Design Ideas & DCC Tutorials & TA
- LearnGL - 学习笔记目录
- Unity - Timeline 知识汇总
- Unity Graphics - 知识点目录 - 停止翻译,因为发现官方有中文文档了
- Graphic资料
- Unity Lightmap&LightProbe局部动态加载(亲测2020以及以上版本官方修复了)
- Unity - 踩坑日志 - 低版本线性颜色空间渲染异常的 “BUG”
- Unity Shader - PBR 渲染 SP 导出的素材
- 什么是 3A 游戏?
- Photosohp - 实现 2D MetaBall、MetaFont