change:
Code:
int main()
{
{
int b = 0;//B is the number 0
int z = 25;
int w = 5;
gotoxy(z, w);
putch(b);//puts the variable B at z, w coordinates.
}
to
Code:
int main()
{
int b = 0;//B is the number 0
int z = 25;
int w = 5;
gotoxy(z, w);
putch(b);//puts the variable B at z, w coordinates.
the brackets ({}) tell the compiler that the code between them only exists between them. So since the variabels that you set up in between the brackets can only exist between them you wouldn't be able to use the variables anywere else in you're code unless you changed it.