If it is a simple variable you want declare it above the main() function call:
int MyVar ;
main()
{
...
}
It is now visible in your whole program.
MLW
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only