void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
char* Menu_1[] = {"Carrera", "Conf. basica", "Conf. avanzada"};
char* Menu_actual[]= {"", "",""};
Menu_actual[]=Menu_1[];
}
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
char* Menu_1[] = {"Carrera", "Conf. basica", "Conf. avanzada"};
char** Menu_actual;
Menu_actual=Menu_1;
}
but without understanding the pointers you can hardly use it
That will still give warnings or errors, depending on the compiler options, because the strings are constant.
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
const char* Menu_1[] = {"Carrera", "Conf. basica", "Conf. avanzada"};
const char** Menu_actual;
Menu_actual = Menu_1;
}
To the original poster:
void actualizar(char* menu[]);
Should be:
void actualizar(const char** menu);
but note that in either case, the actualizar function does not know how many strings you have in each array.