自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 VMware Ubuntu20.04虚拟机安装

镜像下载https://blog.youkuaiyun.com/weixin_45912291/article/details/108900602安装https://blog.youkuaiyun.com/weixin_45912291/article/details/108901106中文输入法安装https://blog.youkuaiyun.com/a805607966/article/details/105874756

2022-05-26 00:03:58 118

原创 C++无法在头文件中定义string类数据

//头文件中不仅要包含<string>,也要加上命名空间//.h文件#include <string>using namespace std;//或者使用//std::string

2020-05-03 21:08:11 3475 8

原创 E0304 C2660 "strcpy_s"

C++ VS20171.E0304 没有与参数列表匹配的 重载函数 “strcpy_s” 实例2.C2660 “strcpy_s”: 函数不接受 2 个参数char* s = "hello";char* str;//动态分配内存提示错误str = new char[10];strcpy_s(str,s); //报错 不接受2个参数//改为以下形式strcpy_s(str,s...

2020-04-09 21:27:33 3601

原创 error C2597: 对非静态成员的非法引用

静态成员函数只能访问静态成员变量class Person{public: //int m_Cnt; //错误C2597 static int m_Cnt; static void addCnt(int cnt) { m_Cnt += cnt; }};int m_Cnt = 0;

2020-03-19 14:54:38 6177

原创 error C4430: 缺少类型说明符

在类外初始化要加数据类型class Person{ static int m_Age; };//Person::m_Age = 0; //错误C4430int Person::m_Age = 0;

2020-03-19 14:52:52 268

原创 error C2864: 只有静态常量整型数据成员才可以在类中初始化

静态成员变量要在类外初始化class Person{public: //错误C2864 //static int m_Age = 0; static int m_Age;};int Person::m_Age = 0;

2020-03-19 14:48:46 1929 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除