- C++ Basics
- Feb 5, 2016
- Learn the fundamental features of C++, including variables, operators, expressions and statements, functions, error handling, I/O, arrays, pointers, and references, and structuring software projects.
|
- C/C++ Memory Management, Bit Fields, and Function Pointers
- Aug 26, 2015
- You're sure that your C/C++ memory-allocation code is bulletproof, but will the code work when the host platform is under stress? Consider using bit flags for applications that require low-level data access. Modern programming also routinely requires the use of complex language features such as callbacks and function pointers. As Stephen B. Morris explains, the use cases for these features are both simple and powerful.
|
- Migrating C/C++ from 32-Bit to 64-Bit
- May 11, 2015
- A major driver of modern C/C++ development is the need for producing native 64-bit code. In most cases, servers and desktop systems are now almost exclusively 64-bit machines. Given this fact, isn't the move to 64-bit C/C++ code just a matter of changing a few build settings? Stephen B. Morris explains why it's not so simple.
|
- From Mathematics to Generic Programming: An Interview with Alexander Stepanov and Daniel Rose
- Feb 16, 2015
- John Lakos interviews Alexander Stepanov and Daniel Rose, authors of From Mathematics to Generic Programming, on their new book, why it applies to everyday programmers, and their positions on some closely related technical issues — including value semantics, concepts, contracts, and polymorphic memory resources — facing the C++ Standards Committee today.
|
- How to Work with Variables, Data Types, and Arithmetic Expressions in the C Programming Language
- Aug 21, 2014
- C has a rich variety of math operators that you can use to manipulate your data. In this chapter from Programming in C, 4th Edition, Stephen G. Kochan covers the int, float, double, char, and _Bool data types, modifying data types with short, long, and long long, the rules for naming variables, basic math operators and arithmetic expressions, and type casting.
|
- Introduction to Programming in C, Fourth Edition
- Aug 14, 2014
- Stephan G. Kochan provides some background about the C programming language and describes the contents and organization of the fourth edition of his book, Programming in C.
|
- Notes to the Reader of Bjarne Stroustrup's Programming: Principles and Practice Using C++, 2nd Edition
- Jun 5, 2014
- This chapter from Programming: Principles and Practice Using C++, 2nd Edition is a grab bag of information; it aims to give you an idea of what to expect from the rest of the book. Please skim through it and read what you find interesting.
|
- Programming: Principles and Practice Using C++: Vectors and Arrays
- May 29, 2014
- This chapter from Bjarne Stroustrup's Programming: Principles and Practice Using C++, 2nd Edition describes how vectors are copied and accessed through subscripting.
|
- Safety in Numbers: Introducing C++14's Binary Literals, Digit Separators, and Variable Templates
- May 14, 2014
- Danny Kalev highlights three new core features in C++14 that simplify the design and implementation of numeric apps. Binary literals such as 0b10101 enable you to parse binary numbers without the onus of converting them to decimal; the new digit separator improves code readability; and, finally, variable templates let you define parameterized constants instead of resorting to cumbersome static member functions.
|
- Preface to Bjarne Stroustrup's Programming: Principles and Practice Using C++, 2nd Edition
- May 5, 2014
- Bjarne Stroustrup introduces the second edition of his book, Programming: Principles and Practice Using C++, which will give you a solid foundation for writing useful, correct, maintainable, and efficient code.
|
- Protect C++ Legacy Programs by Using Python
- Feb 11, 2014
- Stephen B. Morris illustrates a simple way to execute C++ programs by using Python. This approach is lightweight and yet robust, taking advantage of Python's powerful exception-management facilities. Learn how to achieve deeper integration between C++ and Python, while addressing important design issues.
|
- Data and the C Programming Language
- Dec 20, 2013
- This chapter explores the two great families of data types: integer and floating point. C offers several varieties of these types. This chapter tells you what the types are, how to declare them, and how and when to use them. Also, you discover the differences between constants and variables.
|
- The Components of a C Program
- Nov 18, 2013
- In this lesson you will learn the components of a short C program, the purpose of each program component, and how to compile and run a sample program.
|
- The Absolute Beginner's Guide to Writing Your First C Program
- Aug 22, 2013
- This chapter introduces you to your first C program, your first function, and teaches you to identify different kinds of data used in programs.
|
- Preface to "Advanced Programming in the UNIX Environment, 3rd Edition"
- May 16, 2013
- This preface to the highly-anticipated 3rd edition of Advanced Programming in the UNIX Environment, 3rd Edition contains Stephen Rago's current Introduction, his Introduction from the 2nd edition, and also W. Richard Stevens' original Introduction from the 1st edition.
|
- An Interview with Barbara Moo on C++11
- Nov 12, 2012
- C++ Primer has been one of the most popular C++ textbooks for nearly two decades. Now in its new fifth edition, it covers all of the new C++11 core features and library changes. Danny Kalev interviewed co-author Barbara Moo about the new edition of C++ Primer, the writing process, her experiences from the early days of AT&T’s C++ project, and her future plans.
|
- Preface to the Digital Edition of Kernighan and Ritchie's The C Programming Language
- Oct 31, 2012
|
- An Interview with Brian Kernighan on C and The C Programming Language
- Oct 1, 2012
- Originally published in 1978 and updated in 1988, The C Programming Language is considered a “must-read” classic by most programmers and is generally known simply as “K&R.” To mark the publication of an ebook version of the 1988 second edition, we interviewed coauthor Brian Kernighan about the C programming language, the book, and future trends.
|
- Working with Dynamic Memory in C++
- Sep 13, 2012
- C++ lets you allocate objects dynamically. The authors of C++ Primer discuss why properly freeing dynamic memory is a rich source of bugs, and how the new library defines smart pointers—shared_ptr, unique_ptr, and weak_ptr—that make managing dynamic memory much safer.
|
- Move Semantics in C++11, Part 2: Design and Implementation of Special Move Functions
- Jul 9, 2012
- Move semantics in C++11 can improve your code's performance dramatically. Danny Kalev concludes this series with a close look at the design and implementation of move-enabled code. Find out what the state of a moved-from object should be, and learn the guidelines for writing move constructors and move assignment operators.
|