Hello,
i'm wondering if you can delcre a varible in int main and use it in a function?
eg
int main()
{
x = 7
cout << x<<endl;
return 0;
}
function --
{ ....blah blah
}
does something to x delcared in local scope (int main)
Or would I have to declare it globally?