Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (anonymous):

C++ Help. I get the error "The variable 'e' is used without being initialized." Thanks! The code is posted below.

OpenStudy (anonymous):

Guys! Help please! :D

OpenStudy (anonymous):

Possibly declare the variable with a zero. In my programming with Java that usually fixes that type of error. Not trying to be picky, but later on with more complex programs you may want to steer clear of using variable names like e, x, etc.

OpenStudy (anonymous):

Thanks PresidentPolk. But when I declare e=zero. i always get the answer zero. haha maybe my code is wrong.

OpenStudy (anonymous):

well that means u arent initializing the value, so u are using it with whatever is in the space of memory that variable is, u prob have a problem in ur code

OpenStudy (rsmith6559):

First, what type of data is e going to hold? int e = 0; string e =""; bool e = false; double e = 0.0;

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!