I have been working on this for practice to help my skills and i have run into a bit of a snag to where the exe crashes every time it runs. can anyone help my?
The main problem is that an array of size 50 has memory addresses 0 - 49. This will cause the same crash you have:
1 2 3 4
int arr[2];
arr[2] = 5;
// This array can only be accessed through arr[0] and arr[1]
The section that starts at line 47 needs some help. I don't know if you don't have enough brackets. The big issue here is that cin >> a[b] is quick to cause a crash if b is greater than 5.
The general shape of main is not quite correct either:
1 2 3 4 5 6
int main()
{
//stuff your program does
return 0;
}