Background: I learned old-school c++ programming techniques, being able to declare global variables before the main() routine.
However, in Vis C++, I am having trouble, especially with global arrays. I am programming a Windows Forms application. In it, I declare a global integer array just after all my includes in the top of form1.h. Next, the contents of the array are modified during a button-click event function.
The problem: inside another button-click event function, the same global array's contents are scrambled, containing random numbers. I've experimented with using "public:" in the declarations, to no avail.
Any suggestions would be greatly appreciated. Thanks!