Chapter 2. Basic C++ Syntax and Semantics
FAQ 2.01 What is the purpose of this chapter?
To present the fundamentals of C++ syntax and semantics.
This chapter provides a brief overview of C++ syntax and semantics. It covers topics such as main()
, creating and using local, dynamically allocated, and static objects, passing C++ objects by reference, by value, and by pointer, default parameters, C++ stream I/O, using classes with operator overloading, using templates, using auto_ptr
to prevent memory leaks, throwing and catching exceptions, and creating classes including member functions, const member functions, constructors, initialization lists, ...
Get C++ FAQs, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.