Changes between Version 6 and Version 7 of ResumedC


Ignore:
Timestamp:
Apr 29, 2009, 1:13:04 AM (16 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v6 v7  
    135135   /* is like */
    136136   total = total + 1;
     137
     138total++;
     139   /* is like */
     140   newtotal = total;
     141   total + 1;
     142     /* Note that in 'newtotal' is assigned the value of 'total', and AFTER, total is incremented */
    137143
    138144total += 2;
     
    301307}}}
    302308
    303 Imagine a structure of 226 bytes long, for example, that's a lot of data to move around, so you can declare an array of pointers:
     309Imagine a structure that the total size of every structure are 226 bytes, that's a lot of data to move around all the time, so by declaring an array of pointers you will use now the pointers and browse them, instead of the arrays, on this case, you are moving 4 bytes around, instead of 226.
    304310{{{
    305311#!C
     
    313319   list_p[current] = &list[current];
    314320}}}
    315  Now you have to move only 4-byte around, instead of 226 all the time
     321
    316322
    317323