|
//
// Array precompiled class simple test program
//
void test2() // Array<double>
{
printf("This example contains illegal C++ template function call\n");
printf("Array<double> test\n");
darray x(0.0,9.0,10) , y[5];
int n;
for(n=0;n<5;n++) {
y[n] = x*n;
}
// exit();
int i;
for(n=0;n<5;n++) {
printf("%d : ",n);
for(i=0;i<10;i++) {
printf("%g ",y[n][i]);
}
printf("\n");
}
}
main()
{
test2();
// test3();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.