
c++
:十点差三分
这个作者很懒,什么都没留下…
展开
-
解决CLion控制台乱码
将每个文件编码设置为GBK原创 2020-11-05 14:13:25 · 370 阅读 · 0 评论 -
this file does not belong to any project target, code insight features might not work properly
将灰色的目录标记即可原创 2020-11-04 22:13:15 · 1067 阅读 · 0 评论 -
深拷贝与浅拷贝
同样一段代码,vs2019崩掉,devcpp和CLion没崩,浅拷贝的缺点可以用深拷贝解决,浅拷贝崩掉的原理如下#include <iostream>using namespace std;int main() { int* p1 = new int(10); int* p2 = p1; cout << (long long)p1 << endl << (long long)p2 << endl; delet原创 2020-11-03 15:26:26 · 171 阅读 · 0 评论 -
CLion+MinGW 离线安装配置乱码多个main函数调试
刚开始学cpp,工欲善其事必先利其器,开搞!MinGw在官网下安装程序manager,其实还是要在外网下文件无vpn直接百度网盘链接:MinGW提取码:7oac然后配置环境变量测试配置CLion不用多说,自己去官网下个,认证为学生免费用完...原创 2020-10-30 17:18:25 · 233 阅读 · 1 评论