c++ - How to create a lookup table -


basically i've realised way i've coded project need implement form of lookup table, have never done before , therefore don't know how , googling doesn't give clear set of instructions

i need lookup table user can input function command line , pass in parameters function, no idea start

i don't know requirements, imagine sth this:

you might want have c++ function pointers. make own struct holds:

  1. name of function
  2. pointer function
  3. vector of variants (for example boost or write yourown) hold arguments
  4. validate function see if arguments , function pointer fit

create each function user can call instance of struct. display user , let him choose. in second step, let him enter values arguments.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -