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


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

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


desc
@arithmetic operators that work for gcc 2.0.
@


1.2
log
@updated to reflect new conventions
@
text
@static char rcsid[] = "$Id: test004.cc,v 1.1 92/05/22 06:04:01 fischer Exp Locker: thoth $";

//
// $Log:	test004.cc,v $
// Revision 1.1  92/05/22  06:04:01  fischer
// Initial revision
// 
// Revision 1.1  92/05/21  15:11:49  thoth
// Initial revision
// 
//


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

int main()
{
    Coord	ci1(2), ci2(-4), cf1(3.14), cf2(89.2), a, b;

    outlabel(cout, "ci1: ", ci1);
    outlabel(cout, "ci2: ", ci2);
    outlabel(cout, "cf1: ", cf1);
    outlabel(cout, "cf2: ", cf2);

    outlabel(cout, "ci1=ci1-ci2: ", ci1=ci1-ci2);


    outlabel(cout, "ci1+ci2: ", ci1+ci2);
    outlabel(cout, "ci1+cf1: ", ci1+cf1);
    outlabel(cout, "ci2+cf1: ", ci2+cf1);
    outlabel(cout, "cf2+cf1: ", cf2+cf1);

    outlabel(cout, "ci1+2: ", ci1+2);
    outlabel(cout, "ci1+2.11: ", ci1+2.11);
    outlabel(cout, "ci2+2: ", ci2+2);
    outlabel(cout, "cf2+2.11: ", cf2+2.11);

    outlabel(cout, "ci1*ci2: ", ci1*ci2);
    outlabel(cout, "ci1*cf1: ", ci1*cf1);
    outlabel(cout, "ci2*cf1: ", ci2*cf1);
    outlabel(cout, "cf2*cf1: ", cf2*cf1);

    outlabel(cout, "ci1-ci2: ", ci1-ci2);
    outlabel(cout, "ci1-cf1: ", ci1-cf1);
    outlabel(cout, "ci2-cf1: ", ci2-cf1);
    outlabel(cout, "cf2-cf1: ", cf2-cf1);

    outlabel(cout, "-ci1: ", -ci1);
    outlabel(cout, "-ci2: ", -ci2);
    outlabel(cout, "-cf1: ", -cf1);
    outlabel(cout, "-cf2: ", -cf2);

    return 0;
}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
static char rcsid[] = "$Id: test3.cc,v 1.1 92/05/21 15:11:49 thoth Exp Locker: thoth $";
d4 4
a7 1
// $Log:	test3.cc,v $
d15 1
a15 1
#include	<Coord.h>
@
