This is what argument of type 'char*' is incompatible with parameter of type 'char**' means Also, it doesn't use some of the most basic concepts of c++. To fix this, simply pass in a char **
You can do this by passing in the address of newarr instead of newarr itself: You should fix your print function prototype (and body) to work with a parameter of the right type (i.e., int (*)[50]). This video is a tutorial to fix argument of type const char * is incompatible with parameter of type char * error in c++.
Because the arguments are wrong, it's treating the format string as the file pointer, and the second argument as the format string. The reason why this is a red flag is that what a char* parameter points to could be modified, whereas a string literally cannot be safely modified In your case, the simple solution is to change the parameter to be a const char* since the function really doesn't modify what the pointer points to. I've gotten to the point where i'm defining the class but i don't know how to define the int's and double's in the arguments
I get the error c++ default argument of type is incompatible with parameter of type I'm not sure how or what i should put to fix the error. Check if the type of the function has a constructor that can be called with the given types If it doesn’t have such a constructor, replace it by a valid default argument.
The problem is that i get an error message when the program builds Argument of type char* is incompatible with parameter of. The error you’re getting is because arrays in c & c++ implicitly convert to pointers to the first element of the array Individual chars are in single quotes.
Your print function first parameter is of type int *board but you are calling the function with an argument of type int (*)[50]