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


1.3
date	94.10.06.00.44.14;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.09.01.17.38.35;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	94.08.17.03.52.24;	author monica;	state Exp;
branches;
next	;


desc
@@


1.3
log
@made dos filename compatible
@
text
@/*  $RCS$
    $Log: test235.c,v $
// Revision 1.2  1994/09/01  17:38:35  monica
// got rid of include stream.h
//
// Revision 1.1  1994/08/17  03:52:24  monica
// Initial revision
//
 * Revision 1.2  92/09/29  15:28:43  jm
 * *** empty log message ***
 * 
 * Revision 1.1  92/09/16  17:20:45  jm
 * Initial revision
 * 
*/

#include <iostream.h>
#include "Set.h"
#include "vs-util.h"

int main () {

    // union

    IA_Set<int> a,b,c;
    int x;

    a = IA_Set<int>(3,2,5,4,1) | IA_Set<int>(5,7,3,6);

    cout << "a = " << a << "\n";
    cout << "b = " << b << "\n";
    cout << "c = " << c << "\n";

    b = b != c;
    cout << "b = " << b << "\n";
    b = a;
    cout << "b = " << b << "\n";
    x = a == b;
    cout << "x = " << x << "\n";

    x = a  != b;
    cout << "x = " << x << "\n";

    b = value_range(78,93); 
    cout << "b = " << b << "\n";
    cout << "b contains 88 " << (b.contains(88) == 0 ? "false":"true") << '\n';
    cout << "b contains 90 " << (b.contains(90) == 0 ? "false":"true") << '\n';
    cout << "b contains 92 " << (b.contains(92) == 0 ? "false":"true") << '\n';
    cout << "b contains 93 " << (b.contains(93) == 0 ? "false":"true") << '\n';
    cout << "b contains 94 " << (b.contains(94) == 0 ? "false":"true") << '\n';

/*    IA_SetIter<int> next(b);

    while (next(x))
	cout << " next: " << x; */

    return 0;

}


@


1.2
log
@got rid of include stream.h
@
text
@d3 3
d19 1
a19 1
#include "valueset-utils.h"
@


1.1
log
@Initial revision
@
text
@d2 4
a5 1
    $Log:	test001.c,v $
d14 1
a14 1
#include <stream.h>
@
