How can I use a string within a system(). ex: (input is the string)
system(\"open -a Google Chrome\" \"http://www.dictionary.reference.com/browse/\" + input + \"
Have you included the stdlib
header?
No matching function for call to 'system'
typically occurs when it cannot resolve a function with that signature.
EG:
#include // Needed for system().
int main()
{
system("some argument");
return 1;
}
And don't forget to .c_str()
your std::string variable when passing it in as an argument.
See: