Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/10/2009, 02:04
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Respuesta: Expected primary expression before token AYUDA!

Primero no es una variable sino un typedef de un puntero a la estructura.

Esto normalmente se define asi:
Código:
typedef struct _arista
{
  int nombre,peso;
  struct _arista *sig;
}arista, *parista;

typedef struct _vertice
{
  int nombre;
  struct _vertice *Sig;
  struct arista *Ady;
}vertice, *pvertice;
    
pvertice Primero = NULL;
pvertice NuevoNodo = NULL;
Sino tendrias que sacar el typedef ... y usar sizeof(struct vertice) en el malloc.
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO