
c/c++
文章平均质量分 74
妙为
一念归零
展开
-
RegOpenKeyEx函数读取注册表返回值2
RegOpenKeyEx函数读取注册表返回值2原创 2024-10-15 14:28:21 · 703 阅读 · 0 评论 -
使用visual studio2019创建dll导出自定义类
使用visual studio2019创建dll导出自定义类原创 2024-08-06 11:47:10 · 1378 阅读 · 0 评论 -
Successfully added class ‘‘,however you must recompile the ‘‘module before it will appear in the Con
我在unreal engine4中,创建c++工程,我在加入一个新类myCharacter,myCharacter继承自ACharacter,结果ue4编译报错:Successfully added class '',however you must recompile the ''module before it will appear in the Content Browser.Failed to automatically hot reload the''module.Would you like原创 2024-04-24 10:33:12 · 781 阅读 · 2 评论 -
ofstream,ifstream,fstream读写文件
在编程总经常会用到读写文件,基本都是使用ofstream,ifstream,fstream原创 2022-08-01 16:33:59 · 2012 阅读 · 0 评论 -
c++获取工程路径、解决方案路径和.exe路径
c++获取工程路径、解决方案路径和.exe路径原创 2022-07-02 21:12:25 · 2137 阅读 · 0 评论 -
用std::string::compare()用法
c++系列文章目录c++处理文本相对于python等脚本语言还是挺麻烦的,往往需要和fstream、fstream、string、一起配合使用才能完全把文本解析出来。其实,string并不是一个单独的容器,只是basic_string 模板类的一个typedef 而已,相对应的还有wstring, 你在string 头文件中你会发现下面的代码:由于只是解释string的用法,如果没有特殊的说明,本文并不区分string 和 basic_string的区别。string 其实相当于一个保存字符的序列容原创 2022-01-19 18:18:28 · 11463 阅读 · 0 评论 -
This application requires.Net framework 4.6 or higher to be installed.Please install the latest.net
前言This application requires.Net framework 4.6 or higher to be installed.Please install the latest.net frameowrk form https://go.microsoft.com/fwlink/?linkid=840938, or Windows Update.解决去microsoft官网下载.net framework 4.6.net fromwowrk4.6下载官网下载地址...原创 2021-10-12 16:02:59 · 2188 阅读 · 3 评论 -
C++虚继承和虚基类详解
多继承多继承(Multiple Inheritance)是指从多个直接基类中产生派生类的能力,多继承的派生类继承了所有父类的成员。尽管概念上非常简单,但是多个基类的相互交织可能会带来错综复杂的设计问题,命名冲突就是不可回避的一个。多继承时很容易产生命名冲突,即使我们很小心地将所有类中的成员变量和成员函数都命名为不同的名字,命名冲突依然有可能发生,比如典型的是菱形继承,如下图所示:图1:菱形继承类 A 派生出类 B 和类 C,类 D 继承自类 B 和类 C,这个时候类 A 中的成员变量和成员函数继承到原创 2021-09-26 14:10:36 · 208 阅读 · 0 评论 -
c语言strcat()/strcat_s()函数详解
前言 先看下strcat()/strcat_s()函数调用报错:放大一点严重性 代码 说明 项目 文件 行 禁止显示状态错误 C4996 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online...原创 2021-07-16 11:25:06 · 4099 阅读 · 0 评论