Gamestudio Links
Zorro Links
Newest Posts
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 4,259 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Namitha_NN, Syndrela, agasior, mosfet, MonsterX
19188 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Array als function parameter #378666
07/25/11 14:43
07/25/11 14:43
Joined: Oct 2007
Posts: 11
U
Usche Offline OP
Newbie
Usche  Offline OP
Newbie
U

Joined: Oct 2007
Posts: 11
Hallo 3DGS Community!

Gibt es eine möglichkeit im L-C einen ganzen Array als Funktionsparameter zu übergeben?

quasi:

Code:
STRING* array[5];

function parse (STRING* array[]){
...
printf(array[1]);
...
}



MfG Usche

Re: Array als function parameter [Re: Usche] #378667
07/25/11 14:57
07/25/11 14:57
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Code:
function parse(STRING **array)
{
   printf(array[0]); // Nur so falls du es nicht weißt, das erste Element ist bei index 0!
}




Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1