Jul 3, 2006 #1 F 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
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
Jul 11, 2006 #2 F fatma1000 Banned Joined Apr 30, 2006 Messages 147 Helped 3 Reputation 6 Reaction score 2 Trophy points 1,298 Location eygpt Activity points 0 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
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