The program that I'm working on involves large amounts of user-input data. For this reason, I have quite a few functions whose purpose is solely to verify the input and ensure that it is formatted/the correct type.
First of all, what would be the best method to move code to outside files? When I designed the custom classes for my project, I used a .h and .cpp file pair to declare and implement the functions; is the same appropriate for these other random functions?
Secondly, under what circumstances should code be moved outside of the file? I could easily include it all in the main file, but it appears cluttered.