so@brownie.cs.wisc.edu (Bryan S. So) (12/16/90)
Does anybody from Borland read this newsgroup? The following C
program hangs up if compiled with -ml under Turbo C++ (both 1.0 &
1.01). No problem uner Small model. No problem with MS C either.
Probably a problem with the bit field "calculated". Can somebody
suggest a work around?
#define MAX_UNITS 20
typedef struct {
double a;
double b;
unsigned calculated: 1;
} unit;
typedef struct {
double w[MAX_UNITS][MAX_UNITS];
unit u[MAX_UNITS];
} nn;
main()
{
nn Net;
Net.u[7].a = 0.70;
printf("%.2lf\n", (Net.u)[7].a);
return 0;
}
Bryan So