Hey guys... i'm new to the programming scene, i'm totally lost as to how to fix this problem.
The error is on the line with the calculation.
towers[i].radius = 10.0*pow((towers[i].power/PMIN),.25)-10.0);
printf("Tower %c at (%4lf,%4lf) transmitting %.2lf W has a signal radius %4lf\n", towers.id, towers.x, towers.y, towers.power, towers.radius);
The problems are stated as :
- syntax error
- subscripted value is neither array nor pointer
- syntax error before ')' token