Code:
char *buff
char *buff
typedef struct
{int nx, ny, nz;
float *velocity;
}
void a(Model *domain, int i);
void init(Model *domain, int steps);
void main()
{int i, j;
int
void a(Model *domain, int t) /* domain is the name of struct */
typedef struct
{ int x, y, z ;
float *wave;
float *velocity;
}Model;
void a(Model *domain);
void b(Model *domain, int t);
int main()
{int i;
int j=10;
Model Domain;
Domain=(Model *)malloc(sizeof(Model);
for (i=0; i<10; i++)
a(domain);
return;
Leave a comment: