Sounds like you're dereferencing a null pointer. When you get the access violation... select "Retry" or whatever the option is in the popup box to snap the debugger. It will take you right to the offending line of code.
Examine variable contents (open up a "Watch" window) and make sure your indexes are in bounds and your pointers are non-null.
So I got it working, for the most part, it gets past that now and Disch you were right, I had forgotten to even declare the pointer, but now the program runs but does nothing and while I was debugging it i got to the a point where the debugger just wouldn't step into the functions (it was a while statement), then when I try to close the window with either the exit button or the esc button, neither works, so I close the console window and continue debugging and it tells me there is an error in a file called crt0dat.c on this line, anyone know what that means? I didn't even make this file so I have no idea why there would be an error in it.