Hi,
I'm having some trouble with a couple of ifstreams.
I need to read in two files, and so I basically repeat a piece of code that I know works. However, for some reason, the second time around, it reads in garbage (stuff that's not a number (nan)).
and then the second one that follows a couple of lines later is identical, but with different names and so on. But the structure is the same.
So, the first one works, and if I try to comment out the first one, the second works just like it should. But somehow, they don't work together. I've been trying to 'close' the files in different ways without luck.