摘要: #360截图 ![image](https://img2023.cnblogs.com/blog/2852684/202304/2852684-20230416131649934-2053411024.png) 阅读全文
posted @ 2023-04-16 13:17 mnst 阅读(9) 评论(0) 推荐(0)
摘要: 头文件相互包含注意事项 注意剖析出错原因 json.h里面出现了parse.h,存在一定的逻辑先后顺序导致的错误 未能正确运行的版本 main.cpp json.h json.cpp parse.h parse.cpp 正确运行的版本 main.cpp json.h json.cpp parse.h 阅读全文
posted @ 2022-11-06 13:10 mnst 阅读(23) 评论(0) 推荐(0)
摘要: VSCode快捷键 1、 shift + alt + F : 无需选中就可以代码自动对齐 2、 alt + o/O 头文件和源文件的快速切换 3、 2023.3.17日晚上调debug: 基于coderunner运行C++代码: 出现错误:collect2.exe:error:1d returned 阅读全文
posted @ 2022-11-04 10:46 mnst 阅读(159) 评论(0) 推荐(0)
摘要: 单例模式 单例模式实现步骤 1、将类的构造方法定义为私有方法 2、定义一个私有的类的静态实例对象 3、提供一个公有的获取实例的静态方法 示例单例A,单例B A.h #pragma once #include <iostream> using namespace std; class A { publ 阅读全文
posted @ 2022-11-03 21:40 mnst 阅读(32) 评论(0) 推荐(0)