会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Thomas's Blog
吾尝终日而思矣
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
111
下一页
2022年6月10日
加号运算符重载
摘要: #include <iostream> class Person { public: int age_get() { return m_age; } void age_set(int age) { m_age = age; } Person operator+(Person &person) { P
阅读全文
posted @ 2022-06-10 21:38 thomas_blog
阅读(32)
评论(0)
推荐(0)
2022年5月31日
ubuntu忘记密码 虚拟机忘记密码
摘要: 操作流程: 启动系统; 长按【shift】进入GRUB界面; 选择Advanced options for Ubuntu,进入; 选择recovery mode,按【e】进入编辑界面; 翻到最后,将ro recovery nomodeset所在行中,ro改为rw; 按下【ctrl + x】重启系统。
阅读全文
posted @ 2022-05-31 13:35 thomas_blog
阅读(169)
评论(0)
推荐(0)
2022年5月30日
全局函数做友元
摘要: #include <iostream> class Person { //print是Person朋友 可以访问类中私有内容 friend void print(Person &person); public: Person(int age): age(age), sex(0) { } public
阅读全文
posted @ 2022-05-30 18:31 thomas_blog
阅读(32)
评论(0)
推荐(0)
this指针用法
摘要: #include <iostream> class Person { public: //解决名称冲突 void age_set(int age) { //this指针指向 被调用的成员函数 所属的对象 this->age = age; } Person &age_add(int age) { th
阅读全文
posted @ 2022-05-30 17:02 thomas_blog
阅读(30)
评论(0)
推荐(0)
成员变量和成员函数占用内存空间
摘要: #include <iostream> //每个空对象也分配1个字节空间,区分空对象内存位置。每个空对象也有一个独一无二的内存地址 class Person { }; class Student { //静态成员不属于类对象 static int voice; static void func();
阅读全文
posted @ 2022-05-30 16:39 thomas_blog
阅读(85)
评论(0)
推荐(0)
2022年5月19日
C++默认拷贝构造
摘要: class Person { public: Person() { std::cout << "Person()构造" << std::endl; } ~Person() { std::cout << "~Person()析构" << std::endl; } int age_get() { ret
阅读全文
posted @ 2022-05-19 17:48 thomas_blog
阅读(50)
评论(0)
推荐(0)
数组逆序
摘要: #include <iostream> using namespace std; int main() { char buf[] = {1, 3, 4, 2, 6, 5}; int start = 0; int end = sizeof(buf) - 1; while(start < end) {
阅读全文
posted @ 2022-05-19 17:15 thomas_blog
阅读(41)
评论(0)
推荐(0)
2022年4月21日
boost::shared_ptr智能指针
摘要: include <boost/shared_ptr.hpp> using namespace std; class Student { private: string name; public: Student(string name) : name(name) { cout << "Student
阅读全文
posted @ 2022-04-21 20:03 thomas_blog
阅读(28)
评论(0)
推荐(0)
2022年3月23日
DedeCMS页面分类
摘要: 导航栏目(顶级导航) 列表页 内容页
阅读全文
posted @ 2022-03-23 23:35 thomas_blog
阅读(18)
评论(0)
推荐(0)
DedeCMS文章列表
摘要: 官方效果 使用老李工具 添加内容 最终效果
阅读全文
posted @ 2022-03-23 23:17 thomas_blog
阅读(31)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
111
下一页
公告