🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3708

Re: pointer naar table

#3708
From: Roel Schroeven
Date: Wed, 12 Nov 2003 13:55
25 lines
1633 bytes
Toni Van Remortel wrote:

> Besten,
> 
> Lang geleden was mijn kennis van ANSI C wat beter dan nu.
> Ik tracht het volgende te implementeren:
> 
> int table_project[360][5];
> int table_calculate[360][5];
> 
> Dus 2 tabellen. Nu moet ik 2 vaste pointers hebben naar die tabellen:
> 
> 133:  int *project_table;
> 134:  project_table = &table_project;

De tabel is een array van arrays, dus je moet twee maal '*' gebruiken:
int **project_table;

En die '&' moet je niet gebruiken: 'table_project' op zich is al het adres 
van het eerste element:
project_table = table_project.

-- 
"Codito ergo sum"
Roel Schroeven
Technical Details
Message-ID: <_Yqsb.19607$ct6.660586@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <pan.2003.11.12.12.42.57.56187@ha.be.invalid>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,64ee87e359b9e07d
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-11-12 05:55:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: Roel Schroeven <rschroeven_nospam_ml@fastmail.fm>
Subject: Re: pointer naar table
Newsgroups: be.comp.programming
References: <pan.2003.11.12.12.42.57.56187@ha.be.invalid>
Lines: 25
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <_Yqsb.19607$ct6.660586@phobos.telenet-ops.be>
Date: Wed, 12 Nov 2003 13:55:06 GMT
NNTP-Posting-Host: 81.164.251.69
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1068645306 81.164.251.69 (Wed, 12 Nov 2003 14:55:06 MET)
NNTP-Posting-Date: Wed, 12 Nov 2003 14:55:06 MET
Organization: Telenet Internet