Home > Articles > Programming > C/C++


RSS Feed Subscribe to this topic  RSS details

362 Items

Sort by Date | Title

Better Multi-language Programming with Metrics
By Stephen B. Morris
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
By Mark Dalrymple
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
By Bjarne Stroustrup, Herb Sutter
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
By Bjarne Stroustrup, Ted Neward, Herb Sutter
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
By John Ray
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
By John McDonald, Mark Dowd, Justin Schuh
Jan 25, 2008
How you use C could adversely affect an application's security and robustness.
C Secure Coding Rules: Past, Present, and Future
By Robert C. Seacord
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
By Robert Clair
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
By Stephen B. Morris
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
By Stephen B. Morris
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
By Steve Donovan
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
By Peter Gottschling
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
By Stephen B. Morris
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
By Herb Sutter, Andrei Alexandrescu
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
By Herb Sutter, Andrei Alexandrescu
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
By Stephen C. Dewhurst
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
By Stephen C. Dewhurst
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
By Stephen C. Dewhurst
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
By Stephen C. Dewhurst
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
By Harvey M. Deitel, Paul J. Deitel
Feb 5, 2009
Get an introduction to C++'s control statements.

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