摘要:#include <iomanip> #include <iostream> #include "Eigen/Core" int main() { using v = Eigen::Matrix<double, 3, 1>; // rows 3; cols 1 using T = Eigen::Ma
阅读全文
随笔分类 - 重学 C++
摘要:转自:https://blog.csdn.net/zfjBIT/article/details/93972484 #include <iomanip> std::cout << std::setiosflags(std::ios::fixed) << std::setiosflags(std::io
阅读全文
摘要:直接上代码 #include <iostream> class foo { public: foo() { std::cout << "Hello World!\n"; } ~foo() { std::cout << "Good Bye!\n"; } }; int main() { foo a; }
阅读全文
摘要:转自: https://blog.csdn.net/m0_51955470/article/details/117960694 #include <iostream> using namespace std; //template<typename R,typename T,typename U>
阅读全文
摘要:使用vcctor访问数据,如果使用下标 [n] 访问,如果n 大于实际的索引,并不会抛出异常。 所以正规的访问方式,还是使用 .at(n) 的方法。
阅读全文

浙公网安备 33010602011771号