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


1.2
date     92.06.10.11.40.18;  author thoth;  state Exp;
branches ;
next     1.1;

1.1
date     92.06.08.02.46.17;  author fischer;  state Exp;
branches ;
next     ;


desc
@Test of post/pre increment
@


1.2
log
@updated to reflect new conventions
@
text
@static char rcsid[] = "$Id: test006.cc,v 1.1 92/06/08 02:46:17 fischer Exp Locker: thoth $";


#include	<iostream.h>
#include	"Coord.h"

int main()
{
    Coord	ci1(2), ci2(-4), cf1(3.14), cf2(89.2), a, b, c;
    float       float1 = 89.2, float2;
    int         int1, int2;
    void        pr(char *label, Coord coord);
    

    a = Coord(23);
    cout << "a++ test, initial value is: ";
    pr("", a);
    pr("", a++);
    pr("", a);
    
    a = Coord(23);
    cout << "\n++a test, initial value is: ";
    pr("", a);
    pr("", ++a);
    pr("", a);
        
    return 0;
}

void
pr (char *label, Coord coord)
{
    // overly verbose to check all major access functions.

    cout << label 
	 << ",\t type: " << coord.type() 
	 << ",\t value: " << coord << "\n";
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test5.cc,v 1.2 92/06/03 16:15:05 fischer Exp Locker: reti $";
d5 1
a5 1
#include	<Coord.h>
@
