I am writing a program in C++ where there are some variables i want to tune using a genetic algorithm, but finding the fitness value for a single chromosome is relatively slow.
Therefore i want to use concurrency when computing the fitness values of all individuals, but the only way to do this is by using several compiled programs and i want to be able to specify the variables at runtime through the command line (commands are given from a kind of "master" program with a UCI-like protocol), but i dont know any ways to check if there exists a variable with the same name as an input string from cmd.
My question is therefore: Is it even possible to check if a command line input matches a variable name in c++?