Liste des Groupes | Revenir à cl c |
On 7/5/2024 5:40 PM, Ben Bacarisse wrote:BGB <cr88192@gmail.com> writes:
On 7/5/2024 6:20 AM, Ben Bacarisse wrote:BGB <cr88192@gmail.com> writes:
...That's what you want to force me to write, but I can use and array of>While eliminating structs could also simplify things; structs also tend toIndeed. And I'd have to use them for this!
be a lot more useful.
>
Errm, the strategy I would assume is, as noted:
int a[4][4];
...
l=a[j][k];
Becomes:
int a[16];
...
l=a[j*4+k];
arrays despite your arbitrary ban on them by simply putting the array in
a struct.
IN most contexts, I don't really see how a struct is preferable to a
multiply, but either way...
Whole language design is still a hypothetical at this point anyways (and my
actual compiler does support multidimensional arrays).
Les messages affichés proviennent d'usenet.