Didn't get any better titles for this.... Anyway these two questions have bugged me for a time and would like to have a clarification.
1)Is there a macro or an easy way to COPY structs? For an example I have array of structs and I want to create a new replicate of it. Now I have to do it "manually"; initializing every component on creation. Wouldn't be a problem if I could tell for sure that my structs didn't change.
2)How does if((total_frames%80) == X) work? I found it in one of the AUM's but never could really figure out how does 80 percent of frames since start return X amount? Also if I put there 10 will it be allways 10 seconds no matter which wait time I have at the end of the loop?
3)How do struct sizes go? If I leave let's say struct's text component with 21 strings (100 characters each) unitialized will it consume memory still the same amount as it'd when it had been initialized? And which one of the below consumes less memory. I'm pretty sure it's the lower one, but want to be sure.
STRUCT*stru = new(STRUCT);
stru->text = txt_create(21,0);
for(i=0;i<21;i++)
{
//So on
...
STRUCT* stru = new(STRUCT);
stru->text = text_initalized_before;
...
(Note with memory I mean RAM usage... or nexus.)
Thanks in advance;
Walori