i want a bunch of sub routines, but be able to use the variable in the sub routine, outside of the sub routine. for example:
void info (void)
{
do all this stuff which includes int a;
}
int main()
{
info();
now here i want to use a, but outside the sub routine, for example
cout a;
}
how do i do that? when i get home i'll paste the actual program im trying to do, thanks. It doesnt recognize a outside the sub routine.ANY HELP IS APPRECIATED