class FileUnlimited
{
public:
enum MovePointerMethod
{
MPM_BEGIN = FU_FILE_BEGIN // relative count from the beginning
, MPM_CURRENT = FU_FILE_CURRENT // relative count from current
, MPM_END = FU_FILE_END // relative count from the end
};
};
class ConstFile
{
//...virtualbool SetPos(long pos, MovePointerMethod from = MPM_BEGIN){returnfalse;}
};
it swears, declaration without type, declaring types
It's totally nuts.
What's the right way - stat. array and fill it with values? the help with examples is a disaster.
As far as I understand you're trying to declare and initialize the array element by element at global level - this is forbidden. At the local level it compiles without errors.
Or try to initialize the array elements with an initialization sequence - https://www.mql5.com/ru/docs/basis/variables/initialization:
Renat, somehow there was talk of separating the symbol and period change as a reason for deinitialisation/initialisation.
Is it worth waiting for, or does everyone understand what is needed, but don't really want to do it?
There is no solution yet.
error
how is that even possible?Got it, thank you.
Yeah, I'm trying to cram the values in...
if it's like this...
it swears, declaration without type, declaring types
It's totally nuts.
What's the right way - stat. array and fill it with values? the help with examples is a disaster.
As far as I understand you're trying to declare and initialize the array element by element at global level - this is forbidden. At the local level it compiles without errors.
Or try to initialize the array elements with an initialization sequence - https://www.mql5.com/ru/docs/basis/variables/initialization:
As far as I understand, you're trying to declare and initialize an array element by element on a global level - this is forbidden...
Exactly so :)
So, you can't use the array as an input right away?
So you can't use an array as an input straight away?
Yes
Too bad.
Upgr all the same, why is it done that way? Why can't I make a static input array right away and have to duplicate variables?