Appendix E. C Legacy Code Topics

 

We’ll use a signal I have tried and found far-reaching and easy to yell. Waa-hoo!

 
 --Zane Grey
 

It is quite a three-pipe problem.

 
 --Sir Arthur Conan Doyle
 

But yet an union in partition.

 
 --William Shakespeare

OBJECTIVESc

In this appendix you’ll learn

  • To redirect keyboard input to come from a file and redirect screen output to a file.

  • To write functions that use variable-length argument lists.

  • To process command-line arguments.

  • To process unexpected events within a program.

  • To allocate memory dynamically for arrays, using C-style dynamic memory allocation.

  • To resize memory dynamically allocated using C-style dynamic memory allocation.

Outline

E.1

Introduction

E.2

Redirecting Input/Output on UNIX/Linux/Mac OS X and Windows Systems ...

Get C++ How to Program, Sixth 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.