5free

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  重学 C++

摘要:#include <iomanip> #include <iostream> #include "Eigen/Core" int main() { using v = Eigen::Matrix<double, 3, 1>; // rows 3; cols 1 using T = Eigen::Ma 阅读全文
posted @ 2022-11-01 09:50 5free 阅读(64) 评论(0) 推荐(0)

摘要:转自:https://blog.csdn.net/zfjBIT/article/details/93972484 #include <iomanip> std::cout << std::setiosflags(std::ios::fixed) << std::setiosflags(std::io 阅读全文
posted @ 2022-10-31 17:23 5free 阅读(176) 评论(0) 推荐(0)

摘要:直接上代码 #include <iostream> class foo { public: foo() { std::cout << "Hello World!\n"; } ~foo() { std::cout << "Good Bye!\n"; } }; int main() { foo a; } 阅读全文
posted @ 2022-10-28 10:01 5free 阅读(25) 评论(0) 推荐(0)

摘要:转自: https://blog.csdn.net/m0_51955470/article/details/117960694 #include <iostream> using namespace std; //template<typename R,typename T,typename U> 阅读全文
posted @ 2022-10-20 12:54 5free 阅读(28) 评论(0) 推荐(0)

摘要:使用vcctor访问数据,如果使用下标 [n] 访问,如果n 大于实际的索引,并不会抛出异常。 所以正规的访问方式,还是使用 .at(n) 的方法。 阅读全文
posted @ 2021-12-27 08:55 5free 阅读(266) 评论(0) 推荐(0)