Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Okay so I keep getting this error when I try to run my code and can\'t figure ou

ID: 3589360 • Letter: O

Question

Okay so I keep getting this error when I try to run my code and can't figure out how to fix it. (Unhandled exception at 0x75195608 in hw6.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0101F850.) I have included the link to my source code below.
https://www.coursehero.com/qa/attachment/3066855 Okay so I keep getting this error when I try to run my code and can't figure out how to fix it. (Unhandled exception at 0x75195608 in hw6.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0101F850.) I have included the link to my source code below.
https://www.coursehero.com/qa/attachment/3066855 Okay so I keep getting this error when I try to run my code and can't figure out how to fix it. (Unhandled exception at 0x75195608 in hw6.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0101F850.) I have included the link to my source code below. Okay so I keep getting this error when I try to run my code and can't figure out how to fix it. (Unhandled exception at 0x75195608 in hw6.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0101F850.) I have included the link to my source code below.

Explanation / Answer

Can not access your link but the exception that you are talking about generally comes when you are trying to access the memory outside the space you have allocated. If you are using Substring in your code then double check the indexes. Also cross check your upper and lower limit if you are using any loop.

If you really want to learn how to find out exceptions then run only a chunk of code at a time. If the first chunk is successfull then only add second chunk of code and run.Keep doing that until you find out the error. Once you are able to figure out the error code then check for all the bounds used in the error code.

If you are not able to figure out the error, please paste your code in Comment section. I can help you understand.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote