c++ - Const float** defined in header file -
i have 1 dll contains 3 computing methods , 2 static const containers. not define class embedding code in dll. scientific code, code calling dll straight phone call methods defined in it.
the 2 info structures can const , static, , typed float**
. now, defined qvector<qvector<float>>
in header file of class.
jseksearr.reserve(3); jseksearr.resize(3); jseksearr[0] = qvector<float>() << 0 << 1 << 1 << 3; jseksearr[1] = qvector<float>() << 0 << 1 << 3 << 6; jseksearr[2] = qvector<float>() << 0 << 1 << 6 << 10;
but want no more reliant on qt. best, cleaner way define these info structures in header file float** ?
should create struct matrix ?
for 2d vector seek std::vector<std::vector <float> >
c++ dll
No comments:
Post a Comment