I have 2 different versions of code for a simple program. One version works and with minor changes after comparing line for line the two different version only have about 4 different lines. I have many questions about this as far as my style and optimization memory usage etc... But Im not sure if its cool to post the entire program (its about 100 lines maybe minus space for readability). My main question is one of them the bad one exits with a memory error I think and I cant figure out why these few changes make the program run fine (minus warnings which I could never figure out anyway. I dont need any help with the actual program as its for a class and its already completed. The questions are more for me than anything else.