using PI as a const in a header file errors
The header file I have made for my program is full of errors I don't understand and was wondering if anyone could explain as I didn't understand the info in the lib help for these errors.
The compiler comes up with the following errors:
illegal pure syntax, must be ' =0'
'PI' : pure specifier can only be specified for functions
it says this for all of my private variables which are as follows
const float PI = (float) 3.1416
flaot radius = 0.0;
float newRadius = 0.0;
F.Y.I. - the jist of my program using my header will display the total volume of a sphere, total surface area and a cross sectional area at some point perpendicular to a radial
Thanks for any and all help!!!