Calling functions from main() in c++ [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: Calling functions from main() in c++ Hello. I have a programme that has about 100 classes and more than 1000 functions spread over 20 header and source code files. What I want to know is that how I can pass arguments to so many functions in so many files? What is the procedure adopted for this in main()? Regards, Supriyo 回答1: Take a look at the Boost.Program_options module. 来源: https://stackoverflow.com