For some reason I'm getting a stack overflow with this code. I've done a little C++ before in school but have just recently gotten back into it for my work. I've looked to see what the error might be but I can't see it...of course I might be missing something major since if never worked with strings to any great extent.
That is a HUGE array you're declaring on the stack there.
Most likely, this is the cause (or at least the biggest contributing factor) to your stack overflow (since stack space is usually quite limited).
I would consider replacing it with a std::vector: std::vector<AlarmNames> Equipment(22620);
(Remember to #include <vector> as well. You won't need to make any other changes to your code.)
I'll give it a shot. I had a hunch that might be the case, but I wasn't even close to being sure and I didn't want to change anything major in my code without some assurance.
*edited about five seconds later*
The code now compiles but doesn't work like I anticipated..i.e. no output. I'll play around with it to see what it could be. Meanwhile I need to learn more about #include <vector>