Programación General > Visual C++

 funcion goto

(1/1)

cremix:
Hola:

Estoy usando la función GOTO pero al ejecutar el programa me da el siguiente fallo. Sale en una ventana

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   
+   Microsoft Visual C++ Debug Library                                             +
+                                                                                                   +
+   Debug Erro2!                                                                             +
+                                                                                                   +
+   Program: L:IA2_RNNeuralNetworkDebugNeuralNetwork.exe     +
+                                                                                                   +
+   Invalid allocation size: 4294967295 bytes                                    +
+                                                                                                   +
+   (Press retry to debug the application)                                         +
+                                                                                                   +
+   [Anular]   [Reintentar]   [Omitir]                                            +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

El codigo que me da error es el siguiente:


--- Código: C++ ---int crearRed(){   //Variables ...     //Etiquetamenu_crear:{    //operaciones...     while(...)    {          //operaciones        if (...)        {            //...        }        if (...)        {            //...        }        else        {            //...        }            }           //...     while(...)    {        //...         if (...) goto menu_crear;    }      //...         if (...)    {        //...        for (...)        {            //...            while(...)            {                //...            }        }    }     //...    while(strcmp(nombre, "")==0)    {        //...    }    //...     if (...)    {        //...    }    return tratarRed(red, nombre);      }} 
Todo funcionaba perfectamente hasta que le puse el GOTO. Por eso he omitido el código dentro de los bucles y demás. ¿Alguien sabe por qué me da ese fallo?

Navegación

[0] Índice de Mensajes

Ir a la versión completa