摘要: 判断/循环 阅读全文
posted @ 2023-08-31 23:02 HeyMeteor 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 理清C++编译过程用到的工具概念 阅读全文
posted @ 2023-08-19 15:10 HeyMeteor 阅读(705) 评论(0) 推荐(1) 编辑
摘要: ## 字符串和切片 ### 切片 切片的作用是允许你引用集合中部分**连续**的元素序列,而不是引用整个集合。 例如: ```rust let s = String::from("hello world"); let hello = &s[0..5]; // 切片 [0,5) 等效于&s[..5] 阅读全文
posted @ 2023-08-16 23:10 HeyMeteor 阅读(17) 评论(0) 推荐(0) 编辑
摘要: share_ptr / make_shared ref: [C++——智能指针](https://blog.csdn.net/qq_40337086/article/details/126025232) ## 智能指针 ### why 裸指针很危险,忘记释放很容易造成内存泄漏。c++不能完全支持自动 阅读全文
posted @ 2023-08-14 00:31 HeyMeteor 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Invalidate都标脏了哪些节点 阅读全文
posted @ 2023-08-06 01:30 HeyMeteor 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 所有权 Rust通过所有权来管理内存,最妙的是,这种检查只发生在编译期,因此对于程序运行期,不会有任何性能上的损失。 使用堆和栈的性能区别: 写入方面:入栈比在堆上分配内存要快。 因为入栈时操作系统无需分配新的空间,只需要将新数据放入栈顶即可。相比之下,在堆上分配内存则需要更多的工作,这是因为操作系 阅读全文
posted @ 2023-08-03 22:57 HeyMeteor 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 设置wrap_content后,自定义View依然是match_parent的效果 阅读全文
posted @ 2023-07-23 20:48 HeyMeteor 阅读(168) 评论(0) 推荐(0) 编辑
摘要: openGL概述 阅读全文
posted @ 2022-09-09 15:27 HeyMeteor 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: C++ Primer 学习笔记:条件、跳转、try/异常处理,只记录不会或不熟悉的地方。 阅读全文
posted @ 2022-09-06 17:46 HeyMeteor 阅读(32) 评论(0) 推荐(0) 编辑
摘要: C++ Primer学习笔记:运算符表达式,只记录不会或不熟悉的地方 阅读全文
posted @ 2022-09-06 16:33 HeyMeteor 阅读(130) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示