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.47;	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.02.c        Further point constructor examples

#include "IntPoint.h"
#include "DblPoint.h"

int iarray[] = { 0, 1, 2, 3 };

double farray[] = { 0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9 };

int main()
{
    IA_Point<int> ipoint4(iarray, 4);
    // ipoint4 is 4D point initialized from the array iarray

    IA_Point<double> fpoint10(farray, 10);
    // fpoint10 is a 10D point initialized from the array farray
	
    cout << "ipoint4 has value " << ipoint4 << "\n";
    cout << "fpoint10 has value " << fpoint10 << "\n";

    IA_Point<int> ipoint;		// ipoint has no initial value
    ipoint = ipoint4;           // ipoint is assigned ipoint4\'s value

    IA_Point<double> fpoint(ipoint4);
    // fpoint is initialized with ipoint4\'s value

    cout << "ipoint has value " << ipoint << "\n";
    cout << "fpoint has value " << fpoint << "\n";

    return 0;
}
@


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


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

d3 1
d5 1
a5 1
#include "FloatPoint.h"
d11 1
a11 1
main()
d31 1
@
