dos_compilers/Zortech C++ v206/TOOLS/SOURCE/DYNTEST.CPP
2024-07-02 07:30:38 -07:00

19 lines
319 B
C++

#include <stream.hpp>
#include <dynarr.hpp>
declare(gdynarr,double);
main()
{
gdynarr(double) a;
unsigned i;
unsigned u;
for (i = 100; i--;)
a[i] = i;
double *p = &a;
u = a.size();
cout << u << " elements\n";
for (i = u; i--;)
cout << *p++ << "\n";
}