Alex:
No, the only way I know of is wrapping the array into a class and passing an object in place of the array.
Hi,
Is it possible to assign an array to a local variable? I've tried the following but I get a "pointer cannot be used" error.
class Foo {
private:
const double *high;
public:
void Foo(const double &a_high) {
high = a_high;
};
} ;
Ovo Cz:
No, the only way I know of is wrapping the array into a class and passing an object in place of the array.
No, the only way I know of is wrapping the array into a class and passing an object in place of the array.
Ok, Thanks Ovo Cz.
Annoying but I guess they have their reasons.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Is it possible to assign an array to a local variable? I've tried the following but I get a "pointer cannot be used" error.
class Foo {
private:
const double *high;
public:
void Foo(const double &a_high) {
high = a_high;
};
} ;