Is it true that all bit fields must be before any non-bit field members of a structure?
Is it true that all bit fields must be before any non-bit field members of a structure?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Anybody? It was in Sams Teach Yourself C in 21 Days, so I don't know if it's true or not.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
No, it's not.Originally Posted by dwks
I've heard from various people that reading that book does more harm than good.Originally Posted by dwks
Last edited by cwr; 10-12-2005 at 07:47 PM.
DON'T BUMP YOUR THREADS!
Heaven forbid it takes someone more then 20 minutes to respond.
I think I read somewhere that it was true.
Perhaps the same place dwks did, it's not.Originally Posted by sand_man
Perhaps it's a one of the reasons to avoid the Teach Yourself X in Y Days/Hours/Minutues books.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Browsing through the book via that link, it seems to be riddled with errors.Originally Posted by Dave_Sinkula
I am stunned by the number of errors in that link
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I made the mistake of purchasing Sams Teach Yourself C++ in 24 hours. It sort of squishes each topic up, leaving 3 - 6 pages for each topic so I didn't find there was enough info. It took me the best part of 18 months to get a basic grasp on the language as a whole and of course I'm still learning to this day (nearly 3 years later).
Has anyone got The C++ Programming Language (Stroustrup)? I was considering buying it - is it "any good"?
*edit*
Just realised this is the C Programming board... oh well.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
http://www.parashift.com/c++-faq-lit...learn-cpp.htmlOriginally Posted by ahluka
Indeed.Just realised this is the C Programming board... oh well.