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


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


desc
@These files are of historical interest for UM v1.0.
They may be of interest again for set_example.nn.c
@


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

// valueset_example.01       Value Set constructors and operators

#include "Set.h"

int vec[] = {1, 5, 7, 3, 2, 9, 5};  // Note duplicate entry: 5

main() {
    IA_Set<int>
	vs1(1, 8, 9),	// vs1 has the three elements 1, 8, and 9
	vs2(vec, 7),	// vs2 has the unique elements drawn from the
			// 7 element array called vec.
	vs3;

    vs3 = vs1 | vs2;	// union is represented by the logical OR symbol |
    // vs3 = <1 2 3 5 7 9> | <1 8 9>
    //     = <1 2 3 5 7 8 9>

    cout << "vs1 has value " << vs1 << "\n";
    cout << "vs2 has value " << vs2 << "\n";
    cout << "vs3 has value " << vs3 << "\n";
}
@
