Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pointers #464483
02/17/17 12:22
02/17/17 12:22
Joined: Jul 2016
Posts: 51
H
hatten Offline OP
Junior Member
hatten  Offline OP
Junior Member
H

Joined: Jul 2016
Posts: 51
I am wondering if it is possible to use the following multidimensional pointer construct:

#define N1 5
#define N2 5
#define N3 7

run()
{

vars Arr[N1][N2][N3];
var Val;
...

Arr[1][2][1]=series(priceClose(1)-priceclose(0));


Val = Arr[1][2][1](1);

Is this possible or not possible?

Re: pointers [Re: hatten] #464500
02/20/17 08:53
02/20/17 08:53
Joined: Jul 2000
Posts: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
Frankfurt
Yes, but this is wrong syntax. Correct is:

static vars Arr[5][5][7];
...
vars MySeries = Arr[1][2][1];
Val = MySeries[1];



Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1