So I am working on a program for my class and running into "bad alloc" whenever I try to run my code. I get the error at the same point at the end of the while loop in my readInFile function on line 17. Could anyone give me some insight into why my code is causing this problem? I've tried it a couple different ways, but the same result happens.
Thanks a lot for the help! So now it runs all the way through without the bad alloc. Still having some other troubles but it's logic related now! Thanks again.