DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Getting Started

Simple types

For example, we sometimes refer to the classes in components like String(C++) and Time(C++) (or the components themselves, when we are feeling too lazy to make careful distinctions) as simple types because of their similarity to built-in integral types like int. They provide (conceptually) simple objects without any inner structure. The following example illustrates the use of the types in Time(C++); do you see the similarity to int?

       #include <Time.h>
       ...
       Duration d;
       Time t1,t2;
       ...
       d = t2 - t1;

Next topic: Low-level types
Previous topic: Classification of components

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005