Home > Articles > Programming > C/C++

C/C++

362 Items

Sort by Date | Title

Better Multi-language Programming with Metrics
Dec 22, 2014
Stephen B. Morris describes how to get ahead in the new era of multi-language programming. Do you get bogged down with complex script coding in multiple languages? Are you having problems producing robust concurrent C, C++, or Java solutions? You can use metrics to apply your existing programming skills in learning new languages.
Big Nerd Ranch Advanced Mac OS X Programming: Blocks
Nov 14, 2011
In this chapter, Big Nerd Ranch's Mark Dalrymple describes the blocks runtime as released with Mac OS X 10.6 (Snow Leopard).
Bjarne Stroustrup and Herb Sutter on the Future of C++: Part 1: Video Podcast Transcript
Apr 7, 2009
Bjarne Stroustrup and Herb Sutter talk about some of the much-anticipated improvements in C++0x.
Bjarne Stroustrup and Herb Sutter on the Future of C++: Part 2: Video Podcast Transcript
Apr 6, 2009
In this transcription of an OnSoftware session, Bjarne Stroustrup, Herb Sutter, and Ted Neward discuss templates in C++0x, how they relate to functional programming, and Stroustrup's chagrin over 20 years of 'very old news.'
Building Background-Aware Applications for iPhone
Nov 18, 2010
This chapter shows how iOS 4 supports background tasks, what types of background tasks are supported, how to suspend applications, and how to execute code in the background.
C Language Issues for Application Security
Jan 25, 2008
How you use C could adversely affect an application's security and robustness.
C Secure Coding Rules: Past, Present, and Future
Jun 26, 2013
CERT’s Secure Coding Initiative has been developing secure coding standards since 2006. Expert programmer Robert C. Seacord, author of Secure Coding in C and C++, Second Edition, offers a history of this effort, provides detailed information about the ISO/IEC TS 17961 C Secure Coding Rules Technical Specification currently making its way through the standardization process, and discusses the future of these coding standards.
C, the Foundation of Objective-C
Dec 6, 2012
This chapter is a basic introduction to the C programming language, and covers variables, operators, expressions and statements, program flow, preprocessor, and command line compiling and debugging.
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.
C++ 11 Memory Management
Jan 6, 2012
Enterprise development and networking specialist Stephen B. Morris illustrates how to handle a classic C/C++ problem by using the new features in C++ 11 in conjunction with more established techniques.
C++ Arrays and Algorithms
Feb 8, 2002
In this sample chapter from C++ by Example: "UnderC" Learning Edition, Steve Donovan discusses how to declare, initialize, and use arrays; how to search for particular values and how to sort arrays; and how to use the standard containers, including vectors, lists, and maps.
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++ Chain of Responsibility Pattern: Network Events
Feb 10, 2006
Should you make your C++ classes more intelligent or centralize the intelligence and use dumbed-down surrounding classes? The natural world tends to prefer a pass-the-parcel style of distributed intelligence, which reduces single points of failure and potentially leads to more stable systems. In this article, Stephen Morris shows you how to raise the IQ of your classes while simultaneously allowing other (possibly) more-qualified classes to handle specific problems. The chain of responsibility pattern provides an elegant model for facilitating this behavior.
C++ Coding Standards: Report, Handle, and Translate Errors Appropriately
Apr 29, 2005
In C++, as in all coding, it is important to address errors as soon as they are detected. This chapter provides the process for dealing with errors in a precise and prompt manner.
C++ Coding Standards: Take Parameters Appropriately by Value, (Smart) Pointer, or Reference
May 6, 2005
Choosing well among values, references, and pointers for parameters is good habit that maximizes both safety and efficiency. This chapter from Herb Sutter and Andrei Alexandrescu will help you do just that.
C++ Common Knowledge: Assignment and Initialization Are Different
Apr 1, 2005
This chapter explains the difference between assignment and initialization in C++ in simple terms, with examples to illustrate each.
C++ Common Knowledge: Capability Queries
Apr 8, 2005
Most times when an object shows up for work, it's capable of performing as required, because its capabilities are advertised explicitly in its interface. However, life is not always that straightforward. This chapter will help you learn what to do when capabilities aren't readily apparent.
C++ Common Knowledge: Polymorphism
Apr 29, 2005
The topic of polymorphism is given mystical status in some programming texts and is ignored in others, but it's a simple, useful concept that the C++ language supports. Find out all about it in this sample chapter by Stephen Dewhurst.
C++ Common Knowledge: Template Template Parameters
May 12, 2005
This chapter provides a brief rundown of template parameters in C++ with examples to help you keep track of the limitations of C++ templates.
C++ for Programmers: Control Statements: Part 1
Feb 5, 2009
Get an introduction to C++'s control statements.

<< < Prev Page 1 2 3 4 5 Next >