@drbsname_at_aolcom: "I'm trying to get a two dimensional array of doubles, instead I'm getting 
this:
Any help is appreciated.
Db
[C++ Error] vector(1018): E2034 Cannot convert 'const double *' to 
'double[12]'
[C++ Error] xutility(1645): E2277 Lvalue required
[C++ Error] xutility(1515): E2277 Lvalue required
[C++ Error] xmemory(37): E2243 Array allocated using 'new' may not have an 
initializer
#include <vector>
using st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4vector;
#define MAX_EXTRA_MEAS_VALUES 12
typedef double Tvalues[MAX_EXTRA_MEAS_VALUES];
class TForm2 : public TForm
{
__published: // IDE-managed Components
private: // User declarations
public:  // User declarations
  vector<Tvalues> values;
 __fastcall TForm2(TComponent* Owner);
};
//-
extern PACKAGE TForm2 *Form2;
//-
#endif
//-
__fastcall TForm888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4TForm2(TComponent* Owner)
 : TForm(Owner)
{
  Tvalues vals;
  FillMemory(vals,sizeof(vals),0);
  for (int m = 0; m < 50; ++m)
  {
    values.push_back(vals);
  }
}"
    @maeder: ""Db" <drbsname_at_aol.com> writes:
<quote>
I'd never put a using declaration in a header (this is a header,
right?), because there is no way for client code to "unuse" a name.
And I'd do this:
enum
{
  MAX_EXTRA_MEAS_VALUES = 12
};
, because it is much better behaved.
Tvalues is not a suitable type for being used as the value type of a
Standard Library container. The ISO C++ Standard imposes certain
requirements on container value types, and C arrays don't meet these
requirements.
Have you tried
st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4vector< st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4vector<double> > values;
?
This relies on the fact/illusion that a double object with all bytes
equal to 0 has the value 0.0 . This is not a portable
assumption. Better do something like
st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4fill(vals, vals+MAX_EXTRA_MEAS_VALUES, 0.0);
But now that Tvalues is another name for st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4vector<double>,
Tvalues const vals(MAX_EXTRA_MEAS_VALUES,0.0);
is much simpler.
values.insert(values.begin(),vals,50);
or
values.resize(50,vals);
are simpler alternatives if it isn't possible to initialize values in
the initializer list."
    @me_zara: "On Thu, 28 Sep 2006 17:55:12 +0200, <email_address> (Thomas Maeder
<quote>
<..>
Better: You may use the standard approach of assigning an array full
of nothing to it, it guarantees it will be filled with 0.0:
 Tvalues vals={}; //Ha! This will not work on BDS, it is written here
                             // for the sake of Std C/Std C++
or else:
TValues vals={0.0}; // This will work on BDS
You may even shorten it:
Tvalues const vals(MAX_EXTRA_MEAS_VALUES);
Zara"
{'source': 'USENET', 'other_information': '{"reply_count": 2, "forum_name": "borland.public.cppbuilder.language.cpp.20150129.mbox"}', 'file': 'data/output/usenet-borland.public.parquet'}