Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
uninitialized local variable 'x' used.
#1
Hey,i'm really new to cpp i'm just trying out a few things for myself. And now i came across this error 'uninitialized local variable 'x' used' x stands for few different variables im not going to ask you guys to fix the code but im just willing to find out what should i do to fix this. Note : i have just started so i do acknowledge that this is probably really easy to fix like 10 seconds and your done but im willing to find out what should i do to fix this. Thanks for any help
Reply
#2
You're using a variable x without giving it an initial value. Which means you might be performing a check on it or a mathematical operation. Code: int x = 0 ;
Reply
#3
Quote: Originally Posted by Kulikovskaya You're using a variable x without giving it an initial value. Which means you might be performing a check on it or a mathematical operation. Code: int x = 0 ;
Reply




Users browsing this thread: 1 Guest(s)