Re: Zweidimensionaler Array wird falsch belegt.

Tobias Hirning <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hi Philipp!
Am Montag, 11. Juli 2005 16:28 schrieb Philipp Otte:
>> [...]
>
> Hi Tobias,
> sieht nach einem typischen Problem aus.
> Ein zweidimensionales Array ist im Speicher folgendermaßen
> angeordnet: als erste aus dem a[0] dann die a[1]... Das als kleine
> Erläuterung des folgenden Effekts.
> Wenn Du schreibst: int array[100] hast Du die Elemente a[0] bis
> a[99] nicht a[0] bis a[100]. Da Arrayvariablen aber nur Zeiger sind
> gilt: a[0][100] = a[1][0], weil das 100. Element relativ zu a[0][0]
> gesehen eben a[1][0] ist.
> Ich hoffe, ich habe mich verständlich ausgedrückt.
Doch hast du. Ich hatte mir schon gedacht, dass ich da irgendwo einen 
Denkfehler gemacht habe. Das tut echt weh, dass ich daran nicht 
gedacht hab!!!
Werde ich gleich mal ausprobieren, wird wahrscheinlich funktionieren!
Vielen Dank, dass du mir auf die Sprünge geholfen hast!
Tobias

-- 
GPG-Fingerprint: C39E 5381 7721 8613 B5C9  CFAF 54FC B8DB D02D 7085
Registered Linux-User #367044
Registered Linux-Machine #262062
http://counter.li.org
Diese E-Mail wurde mit einer fortgeschrittenen elektronischen
Signatur nach §2 2. d) SigG signiert.
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBC0p7dVPy429AtcIURAu7/AKCps0KFM0dqd0yYeq28FQ1R+X38wQCeMOBc
IPaRgJddoxzTRkFZg+W4euc=
=fyv9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.