Okay so I have a global structure defined as...
I have this structure defined and use it in several programs with similar goals. All of the programs work except for one that is more complicated into which I put an extra function that allows me to shorten the length of the code. The function is...Code:struct branch { /*branches*/ char trait[385]; int counter[386]; } b[64];
When I try to run the build the program it says that on the 4th, 5th, and 7th lines of that code above have errors C2109 and C2228. I don't understand what is wrong with them because when I use almost identical formats in other parts of this program and others it works just fine. Any help with how to fix the problem would be appreciated.Code:void ev(int a, int b, int c) { int i; for(i=0; i<a; i++) { b[b].trait[i]=b[c].trait[i]; b[b].counter[i]=b[c].counter[i]; } b[b].counter[a]=b[c].counter[a]; for(i=a; i<385; i++) bsim(i, b); }