okay so i am working on this turbo c 3.0 program
the problem is that i have 9 arrays in this program declared as global variables within a structure called BUTTONS
now i want to call this array using a function that has the declaration
void press( struct buttons b )
{
.....
}
==================
The structure looks like this:
struct buttons
{
int coord1[6][4], coord2[6][4], coord3[6][4];
int coord4[6][4], coord5[6][4], coord6[6][4];
int coord7[6][4], coord8[6][4], coord9[6][4];
};
struct buttons b;
int coord1[6][4] = { { 220,173,260,203 },
{ 220,203,260,203 },
{ 260,173,260,203 } };
int coord2[6][4] = { { 270,173,310,203 },
{ 270,203,310,203 },
{ 310,173,310,203 } };
int coord3[6][4] = { { 320,173,360,203 },
{ 320,203,360,203 },
{ 360,173,360,203 } };
===================
i'll be posting the structure in a mo' with addn'l details... PL WAIT>..
2006-10-28
09:59:54
·
3 answers
·
asked by
Shariq M
5