I understand how to pass arguments between PHP
and C++
and what (int argc, char** argv)
is, but in terms of visible examples given it is always to do with integers
or strings
.
I want to send across vectors
and booleans
. As answered in a previous question of mine, serialization is an option, but I've also been told that this isn't necessary. Either way, how to read the arguments
out from char** argv
and into their corresponding variable holders (i.e. a std::vector<std::string>
) remains a mystery.
Can someone please help me out here with either an example, or a link to an example that doesn't involve integers
or strings
?