[LC++]typedefs in C++

Vincent Penquerc'h Vincent.Penquerch at artworks.co.uk
Fri Sep 13 02:31:08 UTC 2002


>    I was reading 'Effective C++' by Scott Mayers and while 
> going through the fifth Item, I came across this statement.
> 
> typedef string AddressLines[4];

If I recall well, Scott Meyers finished by saying
"don't use typedef'd arrays" :)

Anyway, the answer to your particular problem might be that C
requires variables to be declared at the top of a block, as
opposed to in the middle of it.

-- 
Vincent Penquerc'h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20020913/1cce92db/attachment.htm 


More information about the tuxCPProgramming mailing list