<THIS HAS BEEN SORTED BY RESTARTING CODE::BLOCKS, TRY IT IF IT'S RELEVENT, IF NOT WHY ARE YOU EVEN HERE?>
Hi there all, I am new to posting problems on a forum so apologies if my way of talking doesn't fit properly...
Am a newb c++ programmer (and to be fair I just program like I'm still talking Java with a few extra bits n bobs). I wrote this little program to calculate the surface area available for a
gas to bind to inside a crystal structure. It reads in a couple of files, does a bit of maths based on the crystal structure then outputs a number. I got this working on my old computer in
VS2008 (urg i know... ms, but it was just a stop gap.) I got a new beautiful computer, installed win7 n code::blocks and a whole bunch of compilers, of which I have tried all. I am getting
SIGSEGV faults at line 13, which is the opening parenthesis to the main program, when i run it through the debugger and, unsurprisingly, it won't step any further through the program than
I am assuming it is a rookie mistake, thought I had made them all but there's always a better idiot, eh?
Here's the code, which I am sure will be as helpful to you as is is for me but I see its the done thing to post ugly code and get it fixed here, enjoy:
Cheers if you help, cheers if you don't, at least you lookedCode:UNNECESSARY CODE BLOCK