HPlogo HP C++ Programmer's Guide: HP 9000 Series Workstations and Servers

Chapter 1 Overview of HP C++

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

C++ is rapidly emerging as a popular successor to C. The C++ language retains the advantages of C for systems programming, while adding features and extensions that make it easier and safer to use. Moreover, C++ supports object-oriented programming. You can use object-oriented programming techniques to write applications that are typically easier to maintain and extend than non-object-oriented applications.

This manual describes HP C++, which is Hewlett-Packard's implementation of the C++ programming language for systems running HP-UX. HP C++ is derived from version 3.0 of the USL product.

C++ translator, which translates C++ source code into C code. However, with HP C++ you can compile C++ source code directly to object code, as well as translate C++ code into C code.

HP C++ is a compiling system that enables you to develop executable files from C++ source code. The components of the compiling system are driven by the CC command line interface. The various components preprocess and compile the C++ source files, add information needed for debugging, and link the resulting object files.

This chapter

  • provides a brief history of C++

  • tells you the difference between C and C++

  • explains how to compile and execute a simple C++ program

  • describes object-oriented programming with C++

  • highlights the incompatibilities and differences between HP C++ and previous releases of C++

© Hewlett-Packard Development Company, L.P.