V
V
vjufvufcgyf2020-10-22 22:53:32
C++ / C#
vjufvufcgyf, 2020-10-22 22:53:32

How to take the name of a function (and not only) from a variable and execute it?

How to take the name of a function (and not only) from a variable and execute it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2020-10-22
@vjufvufcgyf

Any arbitrary - no way. There is no reflection in C++.
Only tricks that can generally be reduced toif(input == "func") func();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question