int main(int argc, char const *argv[]){
	char matrizDestino[25];
	char primerOperando[25];
	strcpy(matrizDestino,argv[1]);
	strcpy(primerOperando,argv[2]);
	obtenerMedidas(primerOperando);
	arregloDeMatriz[0].nlocal = n;
	arregloDeMatriz[0].mlocal = m;
	rellenarMatriz(primerOperando,0);
	MATRIZ resultado;
	if(arregloDeMatriz[0].nlocal != 0){
		int i,j,k;
		resultado.nlocal = arregloDeMatriz[0].mlocal;
		resultado.mlocal = arregloDeMatriz[0].nlocal;
		resultado.estado = 1;
		resultado.matriz = (int**)(malloc( sizeof(int*) * resultado.nlocal));
        for (i=0;i<resultado.nlocal;i++){
             resultado.matriz[i] = (int*)( malloc( sizeof(int) * resultado.mlocal));
        }
		for(i=0;i<resultado.nlocal;i++){
			for(j=0;j<resultado.mlocal;j++){
				resultado.matriz[i][j] = arregloDeMatriz[0].matriz[j][i];
			}
		}
    	guardar2(resultado);
	}
	else{
		printf("LAS MATRICES DEBEN SER DE DIMENSIONES MXN Y NXP RESPECTIVAMENTE\n");
	}
    write(STDOUT_FILENO, "auxiliar.txt", 12);
	return 0;	
}
bool Ajustes::init()
{
    
    if ( !Layer::init() )
    {
        return false;
    }
    this->setKeypadEnabled(true);

    obtenerMedidas();
    initFondoTemp();
    initBotonAtras();
    //initBtDesarrollo();
    //initBtReinicio();
    return true;
}
bool Akuerdate::init()
{
    
    if ( !Layer::init() )
    {
        return false;
    }
    this->setKeypadEnabled(true);
    
    obtenerMedidas();
    initFondo();
    initBtAtras();
    initBtAjustes();
    //reloj va despues de bt_atras porque coge la referencia
    initReloj();
    initProfesor();
    initCuadroInicial();
    initBocadillo();
    initTextoCentral();
    initCuadroJuego();
    
    //activo los tocuh de pantalla
    auto listener1 = EventListenerTouchOneByOne::create();
    listener1->setSwallowTouches(true);
    listener1->onTouchBegan = CC_CALLBACK_2(Akuerdate::onTouchBegan, this);
    listener1->onTouchMoved = CC_CALLBACK_2(Akuerdate::onTouchMoved, this);
    listener1->onTouchEnded = CC_CALLBACK_2(Akuerdate::onTouchEnded, this);
    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener1, this);
    

    initConfiguracion();
    initPanelElementos();
    initPanelPalabras();
    
    return true;
}