testinglongwaycomplete.c:
c: In function `main':
c:50: error: called object is not a function
c:54: error: called object is not a function
c:58: error: called object is not a function
c:62: error: called object is not a function
Sorry if its a bit big, I wrapped it in [code] tags to make it somewhat easier to read and pinpoint the problems~
Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <math.h>
- int main()
- {
- float Mu, k, Cp, p;
- bottom = (linear_search(T,table,26)) + 1;
- top = (linear_search(T,table,26)) - 1;
- T0 = table[top][1];
- T1 = table[bottom][1];
- Mu0 = table[top][3];
- Mu1 = table[bottom][3];
- k0 = table[top][4];
- k1 = table[bottom][4];
- Cp0 = table[top][4];
- Cp1 = table[bottom][4];
- p0 = table[top][4];
- p1 = table[bottom][4];
- /*(T,Mu)*/
- Mu = Mu0+(T-T0)(T1-T0)/(Mu1-Mu0);
- printf("Mu = %f\n", Mu);
- /*(T,k)*/
- k = k0 + (T-T0)(T1-T0)/(k1-k0);
- printf("k = %f\n", k);
- /*(T,Cp)*/
- Cp = Cp0 + (T-T0)(T1-T0)/(Cp1-Cp0);
- printf("Cp = %f\n", Cp);
- /*(T,p)*/
- p = p0 + (T-T0)(T1-T0)/(p1-p0);
- printf("p = %f\n", p0);
- }