How can I put initial value for all EX[N] to zero?

Status
Not open for further replies.

fatma1000

Banned
Joined
Apr 30, 2006
Messages
147
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
eygpt
Activity points
0
if i have like this
struct fld
{
float EX[N],
DX[N];
};
main()
{
struct fld *ptr[2];

/* ptr[0]->EX[] at t and ptr[1]->EX[] at t+dt */

how can i put initial value for all EX[N] to zero?
thanks
 

Re: i need help

please i need to put initial value to fields in struct how can i do this?
like
struct ddd
{
float ex[zmax];
float dx[zmax];
};
how can i set all ex[zmax] and dx[zmax] to zero?
regards
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…