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


1.4
date	94.10.06.00.43.12;	author monica;	state Exp;
branches;
next	1.3;

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

1.2
date	94.09.01.17.38.06;	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.4
log
@made dos filename compatible
@
text
@/*  $RCS$
    $Log: test002.c,v $
// Revision 1.3  1994/10/03  17:09:05  monica
// removed call to value_range
//
// Revision 1.2  1994/09/01  17:38:06  monica
// got rid of include of stream.h
//
// Revision 1.1  1994/08/17  03:52:24  monica
// Initial revision
//
 * Revision 1.2  1992/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<float> a,b,c;
    float x;

    a = IA_Set<float>(3.0,2.0,5.0,4.0,1.0) | IA_Set<float>(5.0,7.0,3.0,6.0);

//    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";

      //    cout << "b = " << b << "\n";

    b = IA_Set<float>(78.0,79.0,92.0);

    cout << "b contains 88.0 " << (b.contains(88.0) == 0 ? "false":"true") << '\n';
    cout << "b contains 90.0 " << (b.contains(90.0) == 0 ? "false":"true") << '\n';
    cout << "b contains 92.0 " << (b.contains(92.0) == 0 ? "false":"true") << '\n';
    cout << "b contains 93.0 " << (b.contains(93.0) == 0 ? "false":"true") << '\n';
    cout << "b contains 94.0 " << (b.contains(94.0) == 0 ? "false":"true") << '\n';

    //    IA_SetIter<float> next(b); 

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

    return 0;

}


@


1.3
log
@removed call to value_range
@
text
@d3 3
d22 1
a22 1
#include "valueset-utils.h"
@


1.2
log
@got rid of include of stream.h
@
text
@d3 3
a43 1
    b = value_range(78.0,93.0);
@


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