You cannot really do that... if I understand your question correctly.
I guess you presently have two programs that can be used like that:
first 123412 1212
or
second 4124 214214
and you want a single program but specify in first argument which "function" to use.
If this is want you want to do, then you have to rename existing
main
in
first.cpp
and
second.cpp
and create a third file that would parse the command line and call the appropriate function depending on the first argument.