hi Christian,
You must have misunderstood my meaning. Creating an new argument
array of exactly the right size is OK. There is no problem. I want to create
an amount of new argument array that they are maybe have the same size. For
instance,
" IntArgs a1(10);
IntArgs a2(10);
IntArgs a3
Hi Kayler,
you should not use IntArgs for representing your data, only for
posting constraints. So, when you read in your data, just use e.g.
normal integer vectors. Then you post the constraints, and you know
exactly how many you need. For each posted constraint, you construct
the cor
hi,
Now let me talk about what i want to do. I have a lot of data,and i need
to copy some data into the variable of the " IntArgs ". The number of
variables what i want is uncertain,which is controlled by an outside
parameter. And these variables include different data.
For instance, i have
hi,
Your said about using Argument arrays are right . The purpose i use
Argument arrays to do is also just as it should to be . What i want to do is
that I want to use uncertain number of Argument Arrays ,so i want to create
Argument arrays dynamically. You said that they do not have a new oper
hi,
And i find that "Gecode::Support::DynamicArray< T, A > Class Template"
maybe can realize it. But i did it unsuccessfully.
Who can give me right answer.
Kayler
2009/8/29 Kayler Yao
> hi,
> I want to create an object of IntArgs in my program dynamically. For
> instance " IntArgs *pt = n
hi,
I want to create an object of IntArgs in my program dynamically. For
instance " IntArgs *pt = new IntArgs(4); -create an object of IntArgs
with four elements" or
"IntArgs *pt = new IntArgs [10];--create an array with 10 object of
IntArgs." They all be compiled with errors. And i hav