I changed my 2D array call in the proto and def--no linker error this time. This time I tossed in a couple of cout's and found out my loop: read name-5 ints (2 digit)-name-3 ints and the first digit of the fourth int.
Then it threw a:
Unhandled exception at 0x01053ef6 in AssignmentNine.exe: 0xC0000005: Access violation writing location 0xcccccccc.
Now what am I doing wrong? (arrays, structs and classes have given me problems since I first tried learning C++ in 2002 before I became a mountain hermit for a few years. I'm still denting my brain pan against brick.)
Whether I get this fixed in time to turn it in tomorrow night, I WILL get it to work. Eventually.
the array name is demoted to type int* and then you dereference it, meaning you're passing the value of the first uninitialized int value and it's being interpreted as an address. In debug configurations (using VC++,) uninitialized variables contain the bit pattern for 0xcccccccc which explains your error message.
By the way, the while control condition on line 27 can never true.