"John" <> wrote in message
news:hxkYf.57791$...
>I keep getting "error C2065: 'p' : undeclared identifier" (it's the same
>for
> t, d, t1, etc...), while using the following programming.
>
> #include <iostream.h>
> #include <stdlib.h>
> #include <math.h>
> #include <iomanip.h>
> #include <fstream.h>
>
> int main()
> {
> fstream suture("SUTURE.dat", ios::in)
need ; at end of line
> double temp;
> double pressure;
> double dwell;
> suture >> batch >> temp >> pressure >> dwell;
>
> double t;
> double t1
> if (temp<150, temp>170)
> ++t;
t was never initialized. Value here is just about anything.
> t1=(t*20);
since t is just about anything, t1 is just about anything times 20.
> double p;
> double p1;
> if (pressure<60, pressure>70)
> ++p;
> p1=(p*20);
Same here, p never initialized.
> double d;
> double d1;
> if (dwell<2, dwell>2.5)
> ++d;
> d1=(d*20);
Need I say it about d?
> }
>
> I basically need to import the suture file and come up with rejection
> percentages. As far as I can tell, I've identified everything with the
> double floater. Any thoughts? TIA
>
>
|