Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Local static variable #254006
02/28/09 12:03
02/28/09 12:03
Joined: Feb 2009
Posts: 3
France
W
WapiAchak Offline OP
Guest
WapiAchak  Offline OP
Guest
W

Joined: Feb 2009
Posts: 3
France
Hi all, I'm a new 3dgs user and it's my first question.
In c++ we can declare a local variable as being static. The data value of a static variable persists for the life of the running process.I want to use this type of variables in a function. Is it possible with Lite-c ?
Thx a lot.

Re: Local static variable [Re: WapiAchak] #254011
02/28/09 12:45
02/28/09 12:45
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
it is.

Re: Local static variable [Re: Joey] #254021
02/28/09 15:53
02/28/09 15:53
Joined: Feb 2009
Posts: 3
France
W
WapiAchak Offline OP
Guest
WapiAchak  Offline OP
Guest
W

Joined: Feb 2009
Posts: 3
France
Thx Joey, I didn't find the answer because I sought in the French manual and the section about variables is not complete, so I will work with the English version.Thx again...

Re: Local static variable [Re: WapiAchak] #254024
02/28/09 16:06
02/28/09 16:06
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
no problem. as far as i know, lite-c is mostly ansi c compliant.


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