home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
microcrn
/
issue_40.arc
/
DAIMS.ARC
/
XYTEST.CPP
< prev
Wrap
Text File
|
1988-02-10
|
384b
|
19 lines
#include "matrix.hxx"
#define NL "\n"
main() {
XYvec a(20,1);
XYvec b(20,2);
for(int i = 0; i < a.size(); i++) {
a[i][X] = i;
a[i][Y] = i *2;
}
for( i = 0; i < b.size(); i++) {
b[i][X] = i;
b[i][Y] = i *2;
}
cout << "a = \n" << a << NL;
cout << "b = \n" << b << NL;
}