O'Reilly logo

C++ How to Program, Sixth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required