Hi, I want to move a large chunk from main to a different CPP file, and I literally have been trying to do this for hours with no luck.
File1 (with main) http://pastebin.com/Np6cHJ0V
Make a new method (name it for whatever that code does). Cut and paste the code in, changing all references to fVars to this, take any variables used outside the cut code and pass them into the method as parameters, move any variables used only inside the cut code to be local to the method, and then edit main to call fVars.func(...).