| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: C++ for beginners? |
From: John Beckett On Mon, 22 Nov 2004 22:20:22 -0500, "Geo" wrote: >I'm unclear, how is loglines2 related to loglines in the below or were you >just giving me two examples in the same program? Just two examples. loglines2 is a global variable (it's actually not global because of the "static"; however it can be used by any of the functions in this source file). In the code, you could replace loglines with loglines2. loglines is a function variable that is "static" (data in normal memory, not on stack; value is retained between calls to the function holding the variable). John --- BBBS/NT v4.01 Flag-5* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45) SEEN-BY: 633/267 270 5030/786 @PATH: 379/45 1 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.