deleted topic

.
Last edited on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct Mystruct
{
double member
double myaccount[12345]
};

int main(){

Mystruct st[10];

for (int i = 0; i < 10; i++){
  for (int j = 0; j < 12345; j++){
    someFunction(st[i].myaccount[j]);
  }
}

//Rest of main 


Will run someFunction on every address of myaccount for every struct in the Mystruct arrary. Accessing variables would be the same:

st[0].member = whatever;
Last edited on
Undeleted!

Hi,
I some trouble with the syntax for passing a member of struct who is an array

struct Mystruct
{
double member
double myaccount[12345]
};

main()
{
....
......
while( x<= than the number of account)
{
Mystruct.memberdouble[x]= somefonction( struct Mystruct myaccount[x][])
x++
}.....

}


thank you
Topic archived. No new replies allowed.