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


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

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


desc
@Initial control version.
@


1.2
log
@Added exit() to main() for picky systems.
@
text
@// test-loops.c
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.


#include "PSIter.h"
#include "loop-ps.h"

int main() {

    int d, s, e;

    cout << "Enter dimension: ";
    cout.flush();

    cin >> d;

    cout << "Enter loop start value: ";
    cout.flush();
    cin >> s;

    cout << "Enter loop end value: ";
    cout.flush();
    cin >> e;

    IA_Set<IA_Point<int> >
	ps( loop_ps(d,s,e) );

    IA_Point<int>
	ip;
    IA_PSIter<IA_Point<int> >
	ips(ps);

    int first = ps.min()[0];
    while( ips(ip) ) {
	if (ip[0] != first) {
	    cout << endl;
	    first = ip[0];
	}
	cout << ip << " ";
    }
    cout.flush();

    exit( 0 );
}
@


1.1
log
@Initial revision
@
text
@d9 1
a9 1
void main() {
d43 2
@
