I am trying tot pass argv from the main function of my program to the constructor of my class. I want to then set a field in my class to those values. I have const char * _argv[]; in my header file. My constructor is:
Sweeper(int argc, const char * argv[]){_argc = argc; _argv = argv;}
What do I need to do?
For function parameters (only),
const char * argv[]is a funny way of spellingconst char **argv. So the fix is to define_argvto match.