head	1.3;
access;
symbols;
locks; strict;
comment	@// @;


1.3
date	94.10.11.00.27.28;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.09.02.01.47.48;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.09.01.00.12.56;	author rjj;	state Exp;
branches;
next	;


desc
@Placing under RCS.  This should be the source corresponding to UM 1.0
@


1.3
log
@Modified to use 'return 0;' rather than 'exit(0);'.
@
text
@// point_example.04.c        Point relational operators

#include "IntPoint.h"

int  main()
{
    IA_Point<int>
	ipoint123(1, 2, 3),
	ipoint321(3, 2, 1),
	ipoint333(3, 3, 3);
    
    cout << (ipoint123 < ipoint321) << "\n";
    // This has value 0 (false) because the relational operators (with the
    //   exception of !=) require the relation to hold at each coordinate.
    
    cout << (ipoint333 >= ipoint123) << "\n";
    // This has value 1 (true). (The relation holds for each coordinate.)
    
    cout << (ipoint123 != ipoint321) << "\n";
    // This has value 1 (true) because != returns the negation of the ==
    // relation (which does not hold at coordinates 0 and 2).

    return 0;
}
@


1.2
log
@Modified to be iac++ v2.0 compliant.
@
text
@a2 1
#include <stdlib.h>
d23 1
a23 1
    exit( 0 );
@


1.1
log
@Initial revision
@
text
@a0 2
// Emacs: -*- C++ -*-

d3 1
d6 1
a6 1
main()
d23 2
@
