Zortech C/C++
Walter Bright
bright at nazgul.UUCP
Tue Nov 27 08:19:15 AEST 1990
In article <PAUL.90Nov24170411 at tucson.sie.arizona.edu> paul at tucson.sie.arizona.edu (Paul Sanchez) writes:
/I am using the Zortech C/C++ compiler, v.2.1 on an IBM PS-2/80 running
/DOS 3.3.
/1) I appear to be running into the 64k barrier. Is there any way I
/can create a vector of doubles >8k in length?
Sure. Declare:
double *a[10];
for (i = 0; i < 10; i++)
a[i] = (double *) malloc(4096 * sizeof(double));
To access it:
#define a(j) a[j>>12][j&(4096-1)]
a(m) = y;
x = a(n);
/2) The "%g" format in printf works as described by K&R II, but is
/different from all of the UNIX implementations I deal with and from
/Microsoft.
This will be fixed.
More information about the Comp.lang.c
mailing list