I promise I tried to look this up before I came to ask you guys, but the resources I found never answered the question.... Is it unusual for a variable made in a function to be invisible to another code block in the same function? I use Dev C++ and that is what seems to be happening.
for example:
int main()
{
int a = 0;
.
.
.
while (something)
{
.
.
a += 1; /*compiler says variable is undeclared*/
}
.
.
.
}