Introduction
I found this topic very useful for software engineering, e.g., make some small stuff for fun. C++ Classic way int main(int argc, char* argv[]){....} http://www.cplusplus.com/articles/DEN36Up4/ A fancy way? Use boost library http://theboostcpplibraries.com/boost.program_options Python Dirty and fast? import sys sys.argv[1:] For more "neat & standard"option, check http://www.tutorialspoint.com/python/python_command_line_arguments.htm |
AuthorShaowu Pan Archives
December 2017
Categories
All
|