I wanted to create an array before int main() function, but compiler didn't allow this. I tried this:
Code:
size_t temp_size;
int varArray[temp_size];
Another q: why g++ allows declaration of arrays inside int main() without exact value, but Visual C++ 2005 doesn't? It demands some integer values:
Code:
int varArray[temp_size]; //g++
int varArray[200]; //Visual C++ 2005
How can I make it work in Visual C++ 2005 before...