[CSI] Questions About the Book

Mikhail Nesterenko mikhail at cs.kent.edu
Fri Oct 7 12:40:55 EDT 2022


>   
>  I am reading the Professional C++ book by Marc Gregoire, and read about the #pragma once directive, and was wondering why this directive isn???t taught as the standard or at least taught after CS1? The book doesn???t mention any disadvantages.
>   
> 

#pragma once

is a Microsoft invention, considered non-standard and was somewhat
discouraged from use due to compatibility issues. These days it seems
most compilers support it.


>   
> Additionally, I noticed that on your website, there are no corresponding Gregoire chapters for associative containers and algorithms even though chapters 16, 17, 18, 19, and 20 discuss the STL, iterators, containers, and even a dedicated chapter to function pointers, functors, and lambda expressions. Do you recommend any of these chapters and if so, why aren???t they on the website? I have the 5th edition so I don???t know if there???s any discrepancies. If you don???t recommend these chapters, let me know. I???ve attached a picture of the table of contents so you can see exactly what I???m talking about.
>   

Well, Gregoire changes the book chapter numbers from edition to edition. Let
me check his most recent edition to see what the appropriate chapter
numbers are.

Please reed the STL chapters.

Thanks,
--
Mikhail


More information about the cs13001 mailing list