how to quickly initilize a struct component?
From: richard (yzhu_at_algis.ca)
Date: 02/17/05
- Next message: Frank Hickman [MVP]: "Re: stdin ? stdin ? What's wrong with stdin?"
- Previous message: Rob: "RE: Why no C++ in Windows itself?"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: how to quickly initilize a struct component?"
- Reply: Carl Daniel [VC++ MVP]: "Re: how to quickly initilize a struct component?"
- Reply: Severian: "Re: how to quickly initilize a struct component?"
- Reply: Tom Widmer: "Re: how to quickly initilize a struct component?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 17:05:07 -0800
I have a struct component
for(i=0;i<1000;i++)
{
for(j=0;j<50;j++)
{
horiObjList[i][j].stX=0;
horiObjList[i][j].stY=0;
horiObjList[i][j].endX=0;
horiObjList[i][j].endY=0;
horiObjList[i][j].used=0;
horiObjList[i][j].span=0;
horiObjList[i][j].finished=0;
}
}
is there a simple way init it ?
thanks
- Next message: Frank Hickman [MVP]: "Re: stdin ? stdin ? What's wrong with stdin?"
- Previous message: Rob: "RE: Why no C++ in Windows itself?"
- Next in thread: Carl Daniel [VC++ MVP]: "Re: how to quickly initilize a struct component?"
- Reply: Carl Daniel [VC++ MVP]: "Re: how to quickly initilize a struct component?"
- Reply: Severian: "Re: how to quickly initilize a struct component?"
- Reply: Tom Widmer: "Re: how to quickly initilize a struct component?"
- Messages sorted by: [ date ] [ thread ]