TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALEXANDRE OSTANINE
from: BALOG PAL
date: 1997-04-08 22:24:00
subject: typedef

                           Hi, Alexandre Ostanine!
On 4 Apr 97  10:44:25 you wrote to Rick Arding
 AO> Nice but wy don't you use that:
 AO> typedef struct {
 AO> int a;
 AO> }mystruct;
typedef is not needed in C++. Just write
struct mystruct { int a; };
It's automatically a type. And you can use mystruct * right inside the {} if
you like.
Paul
... Cause of Death: CRC Error
--- OS/2 Warp
---------------
* Origin: The FlintStones' Cave in BedRock (2:371/20)

SOURCE: echomail via exec-pc

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™.