A
A
Anonymous Ivanovich2020-04-27 22:44:11
C++ / C#
Anonymous Ivanovich, 2020-04-27 22:44:11

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"); 
}

It gives the following error please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Muravyov, 2020-04-27
@Murean

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 question

Ask a Question

731 491 924 answers to any question