Morning all.
Hope everyone has great weekend.
Once I get done posting this I'll be digging yet another hole for my spinkler system, and hopefully finishing off my drip system for more backyard.
Ok....
Onto my issue.
After a week of struggle to find out why I kept getting errors, I've finally reduced them to a single error-- 5 times.
------ Build started: Project: AngleFinder, Configuration: Debug Win32 ------
Compiling...
SteveAngle.cpp
.\SteveAngle.cpp(85) : error C2296: '/' : illegal, left operand has type 'long double (__cdecl *)(const float)'
.\SteveAngle.cpp(88) : error C2297: '/' : illegal, right operand has type 'long double (__cdecl *)(const float)'
.\SteveAngle.cpp(119) : error C2296: '/' : illegal, left operand has type 'long double (__cdecl *)(const float)'
.\SteveAngle.cpp(122) : error C2297: '/' : illegal, right operand has type 'long double (__cdecl *)(const float)'
.\SteveAngle.cpp(151) : error C2297: '/' : illegal, right operand has type 'long double (__cdecl *)(const float)'
Build log was saved at "file://e:\Steve'sDocs\Visual Studio 2008\Projects\AngleFinder\AngleFinder\Debug\BuildLog.htm"
AngleFinder - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Here are my # include headers.
# include <stdafx.h>
# include <iostream>
# include <cmath>
# include <xutility>
# include <conio.h>
using std::cout;
using std::cin;
using std::endl;
What I don't understand is why <cmath> does not recognize the use of the divisor symbol for division.
And I further don't undrstand how I'm to get division operations when this happens.
I have in fact done a search on this forum, and on google, and no one is discussing this. The only c2297 errors being discussed are for the modulus operator.
Which tells me that no one has had this particular problem before (or if they have, they apparently were able to resolve it without the need to post)-- leading me to the question-- why am I having it.
I'm doing 4 distinct operations with the division symbol, and it's calling all four-- three are identical.
Oh, on another note, why do I need to define PI? I thought PI was also located in the constant library of <cmath>.
What would I need to include for the math constants?
Thank you for your respective helps-- they are deeply appreciated.