240
笔下虽有千言,胸中实无一策

随笔分类 -  C/C++

摘要:内容 1. 动态内存和智能指针 1. shared_ptr 2. 直接管理内存 3. 和new一起使用shared_ptr 4. 智能指针和异常 5. unique_ptr 2. 动态数组 3. 使用库:文本查询程序 4. 总结 0. 摘要 动态分配的对象(dynamically allocated 阅读全文
posted @ 2020-03-25 02:24 CasperWin 阅读(193) 评论(0) 推荐(0)
摘要:inline关键字 作用:避免频繁调用函数对栈内存重复开辟所带来的消耗。 在 c/c++ 中,为了解决一些频繁调用的小函数大量消耗栈空间(栈内存)的问题,特别的引入了 inline 修饰符,表示为内联函数。 栈空间就是指放置程序的局部数据(也就是函数内数据)的内存空间。 在系统下,栈空间是有限的,假 阅读全文
posted @ 2020-03-17 04:23 CasperWin 阅读(289) 评论(0) 推荐(0)
摘要:template<typename _MatrixType, int _UpLo>class Eigen::LLT< _MatrixType, _UpLo > Standard Cholesky decomposition (LL^T) of a matrix and associated feat 阅读全文
posted @ 2017-12-08 05:05 CasperWin 阅读(577) 评论(0) 推荐(0)
摘要:Double ended queue deque (usually pronounced like "deck") is an irregular acronym of double-ended queue. Double-ended queues are sequence containers w 阅读全文
posted @ 2017-11-15 04:50 CasperWin 阅读(176) 评论(0) 推荐(0)
摘要:Multiple-key set Multisets are containers that store elements following a specific order, and where multiple elements can have equivalent values. Comp 阅读全文
posted @ 2017-11-15 04:11 CasperWin 阅读(219) 评论(0) 推荐(0)
摘要:定义: 虚函数是应在派生类中重新定义的成员函数。 虚函数是面向对象程序设计中的一个重要的概念。只能适用于指针和参考的计算机工程运算。当从父类中继承的时候,虚函数和被继承的函数具有相同的签名。但是在运行过程中,运行系统将根据对象的类型,自动地选择适当的具体实现运行。虚函数是面向对象编程实现多态(pol 阅读全文
posted @ 2017-08-09 09:21 CasperWin 阅读(897) 评论(0) 推荐(0)
摘要:Books: Cracking the Coding Interview: 189 Programming Questions and Solutions 6th Edition C++ - Elements of Programming Interviews Code practice: Leet 阅读全文
posted @ 2016-11-19 02:13 CasperWin 阅读(364) 评论(0) 推荐(0)