Answer the question
In order to leave comments, you need to log in
How to fix error C4700 (uninitialized variable used)?
#include <math.h>
#include <iostream>
using namespace std;
int main()
{
const int p = 180, pi = 3.14;
int a, b, c, S;
float A, B, C;
cout « "vvedite b,c,S \n";
cin » S » b » c;
A = pi - B - C; // C4700: используется 'B' и 'C'
b = a*sin(B)/sin(A); // C4700: используется 'a'
C = a*sin(C)/sin(A);
S = a*a*sin(B)*sin(C)/2*sin(A);
cout « "b=" « cos(b);
cout « "A=" « cos(A);
cout « "C=" « cos(C);
system("pause");
}
Answer the question
In order to leave comments, you need to log in
First, the quality of the screenshot expects much to be desired. Secondly, if you attach a code, then put a tag with a script on it. Thirdly, VS itself wrote to you all about the error. You are trying to use the value of a variable that has not been given a value. All 3 errors say the same thing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question