|
Re: C++ Windows Form Application Help
My short answer would be to use C#. It uses C++ syntax and gives you quicker access to the form classes that you'll want to use.
If you are positively set on using C++, then I'd get well read on MFC (yuck!) or the CLR extensions in C++ including how to write "managed code" in C++. Again, these are fairly substantial headaches that you can bypass by using C#.
Regarding your specific question about global arrays, they are generally a bad practice in C++. Also, if you don't know just how many elements there will be, you'll want to use a dynamic allocation type, like Vector (found in the STL header 'vector.h'). You may want to consider having a class (with the appropriate access functions) to hold the arrays/vectors. Or have a class to describe a person who's time you are tracking, then hold the time values there.
As a side question, have you considered how you're going to persist the data? I assume you want to be robust against a program crash or power outage.
__________________
2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances
FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000
|