skip to main content
Skip header Section
C++ Quick Syntax ReferenceJuly 2013
Publisher:
  • Apress
  • 901 Grayson Street Suite 204 Berkely, CA
  • United States
ISBN:978-1-4302-6277-0
Published:31 July 2013
Pages:
124
Skip Bibliometrics Section
Bibliometrics
Skip Abstract Section
Abstract

The C++ Quick Syntax Reference is a condensed code and syntax reference to the C++ programming language. It presents the essential C++ syntax in a well-organized format that can be used as a handy reference. You wont find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any C++ programmer. In the C++ Quick Syntax Reference, you will find: A concise reference to the C++ language syntax. Short, simple, and focused code examples. A well laid out table of contents and a comprehensive index allowing easy review. What youll learn How to create a C++ HelloWorld How to Compile and Run What are C++ Variables, Operators, Pointers and References What are Arrays, Strings, Conditionals, Loops and more How to do Functions How to work with Constructors, Inheritance, Overridings How to use Access Levels, Static, Enum, String and Union, and more What are Custom Conversions, Namespaces, Constants, and Preprocessor How to do Event Handling What are Type Conversions, Templates, Headers, and more Who this book is for This book is a quick, handy pocket syntax reference for experienced C++ programmers, and a concise, easily-digested introduction for other programmers new to C++. Table of Contents1. HelloWorld 2. Compile and Run 3. Variables 4. Operators 5. Pointers 6. References 7. Arrays 8. String 9. Conditionals 10. Loops 11. Functions 12. Class 13. Constructor 14. Inheritance 15. Overriding 16. Access Levels 17. Static 18. Enum 19. String and Union 20. Operator Overloading 21. Custom Conversions 22. Namespaces 23. Constants 24. Preprocessor 25. Event Handling 26. Type Conversions 27. Templates 28. Headers

Contributors

Recommendations

Reviews

I-Lun Tseng

This book provides readers with concise code examples and brief descriptions for many fundamental C++ language features. The book is suitable for C++ programmers who need to frequently check the language syntax. Although this is not an introductory book, novice C++ programmers will find it very useful. The first two chapters of the book instruct readers on how to develop, compile, and run C++ programs. Chapters 3 through 11 cover topics including variables, operators, pointers, references, arrays, strings, conditional statements, loop constructs, and functions; many of these language features are also included in the C programming language. Chapters 12 through 16 discuss topics relevant to C++ classes; these topics include constructors, destructors, inheritance, overriding methods in derived classes, and the access levels for class members. Chapter 17 presents how to use the keyword “static”; a number of code examples also involve C++ classes. Chapters 18 and 19 cover a number of keywords including “enum,” “struct,” and “union.” Chapters 20 through 26 present operator overloading, type conversions, namespaces, constants, preprocessor directives, exception handling, and casting. Chapter 27 introduces C++ templates with concise code examples and lucid descriptions. Finally, header files are discussed in chapter 28, which is followed by the index section of the book. The major drawback of the book is that the topics it covers are not broad enough. Therefore, it may not be suitable for advanced C++ programmers, as many advanced or frequently used language features are not covered. For example, containers (including vector, list, set, map, and unordered_map) that exist in the C++ standard library are not introduced. Also, the book should contain the syntax for frequently used functions, such as the functions for file input/output operations and for output formatting. In addition, some useful features defined in the C++11 standard, such as regular expressions and smart pointers, could have been included in the book. Since C++ is a huge and complex language, it is difficult to cover all of the important language features within 105 pages. However, the book serves its purpose very well for the topics it contains. Specifically, the code examples are concise, easy to understand, and easy to follow. Also, the brief descriptions are clear and to the point. Most importantly, the book provides a quick reference for checking C++ language syntax, as suggested by its title. More reviews about this item: Amazon Online Computing Reviews Service

Access critical reviews of Computing literature here

Become a reviewer for Computing Reviews.