test_sample.cpp

来自「一个很全的matlab工具包」· C++ 代码 · 共 26 行

CPP
26
字号
#include <sample/sample.h>#include <iostream>using namespace std;using namespace BFL;using namespace MatrixWrapper;int main(){  ColumnVector a(3);  a[0]=1;   a[1]=1;   a[2]=1;  Sample<ColumnVector> my_first_sample;  my_first_sample.ValueSet(a);    cout << "Sample<ColumnVector>:\n" << my_first_sample << endl;  Sample<int> my_second_sample;  my_second_sample.ValueSet(2);  cout << "Sample<int>\n" << my_second_sample << endl;  cout << "test_sample... done" << endl;    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?