Answered by:
I'm getting the C2143 missing ';' before 'string' error. Please help me i.d the problem.

Question
-
#include <iostream>;
#include <cmath>;
using namespace std;
int main()
{
float a, b, c, A, A1, B1, B, tot1, tot2, tot3;
char done, an;
#define PI = 3.14;
cout<< "input value of a \n";
cin >> a;
cout << "input value of b \n";
cin >> b;
tot1 = a*a + b*b;
c = sqrt(tot1) ;
cout << c "\n";
tot2 = (b*b + c*c - a*a) / 2 * b*c;
A1= acos(tot2);
A = A1 * 180;
cout << A "\n" ;
cin >> done;
tot3 = (a*a + c*c - b*b) / 2 * a*c;
B1 = acos(tot3);
B = B1 * 180;
cout << B "\n" ;
cin >> done;
cout << "C is equal to 90 degrees \n " ;
return 0;
};I'm new to coding entirely so as simple as possible please.
- Moved by Dave PatrickMVP Wednesday, February 3, 2016 4:00 PM
Wednesday, February 3, 2016 3:43 PM
Answers
-
Might try over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Wednesday, February 3, 2016 4:10 PM
- Marked as answer by Just Karl Wednesday, February 10, 2016 8:19 PM
Wednesday, February 3, 2016 3:59 PM
All replies
-
Might try over here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.- Proposed as answer by Mike Laughlin Wednesday, February 3, 2016 4:10 PM
- Marked as answer by Just Karl Wednesday, February 10, 2016 8:19 PM
Wednesday, February 3, 2016 3:59 PM -
Try what?
Wednesday, February 3, 2016 4:32 PM -
Try asking in a forum where the question is on topic.Wednesday, February 3, 2016 4:38 PM
-
Try what?
Try asking your question over there. You posted in MSDN profiles / recognition forum.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.Wednesday, February 3, 2016 4:56 PM