[CHAT]*desvirtuadores~designs*[preguntas que no puedes hacer en ningun tema] -

Tema en 'Portal de Diseño' iniciado por +NoGodSoGood., 3 May 2009.

  1. 'SKillET~

    'SKillET~ Usuario Habitual nvl.3 ★
    37/41

    Registrado:
    20 Abr 2009
    Mensajes:
    18.623
    Me Gusta recibidos:
    6
    gracias troickox :XD:
     
  2. Lucho.-

    Lucho.- Usuario Casual nvl. 2
    37/41

    Registrado:
    19 Feb 2009
    Mensajes:
    2.505
    Me Gusta recibidos:
    3
    Gracias:jaja:
    no importa me gusta mas este
     
  3. Troicko

    Troicko Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    2 Abr 2009
    Mensajes:
    24.669
    Me Gusta recibidos:
    10
    de nada mi querido disipulo
     
  4. 'SKillET~

    'SKillET~ Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    20 Abr 2009
    Mensajes:
    18.623
    Me Gusta recibidos:
    6
    si me dices ami me tienes ke decir mi futuro padawan en entrenamiento :D
     
  5. Lucho.-

    Lucho.- Usuario Casual nvl. 2
    37/41

    Registrado:
    19 Feb 2009
    Mensajes:
    2.505
    Me Gusta recibidos:
    3
    .....
    La wea tengo sueño
     
  6. +NoGodSoGood.

    +NoGodSoGood. Usuario Casual nvl. 2
    37/41

    Registrado:
    15 Feb 2007
    Mensajes:
    1.181
    Me Gusta recibidos:
    12
    Insertar CODE, HTML o PHP:
    #include<stdio.h>
    #include<stdlib.h>
    
    typedef struct Nodo{
        int Dato;
        struct Nodo *Link;
    }Nodo;
    
    typedef Nodo *Lista;
    
    void mostrar(Lista L)
    {
        Lista p;
        p = L;
        while(p != NULL)
        {
           printf("valor es %d\n",p->Dato);
           p = p->Link;    
        }
    }
    
    
    void Insertar(Lista *L, int e)
    {
      Lista p,q,t;
    
      p=(Lista) malloc(sizeof(Nodo));
      p->Dato=e;
      p->Link=NULL;
    
      if(*L == NULL)
        {
          *L=p;
        }
      else
        {
          q=*L;
          t=*L;
          while(q != NULL)
    	  {
    	    if(q->Dato < e)
    	    {
    	      t=q;
    	      q=q->Link;
    	      if(q == NULL) // para el ultimo nodo
    	      {
                 t->Link = p;     
              }
    	    }
    	    else
    	    {
    	      if(q == t)  // para insertar al comienzo
    		  {
    		    p->Link=q;
    		    *L=p;
    		    q=NULL;
    		  }
    	        else
    		    {             // entre medio
    		      t->Link=p;
    		      p->Link=q;
    		      q=NULL;
    	        }
    	    }
    	  }
        }
    }
    
    void Intercambiar(Lista *L)
    {
      Lista p,q,t,s;
      p = *L;
      q = p->Link;
      s = *L;
      t = *L;
      while(s->Link != NULL)
      {
         t = s;
         s = s->Link;              
      }     
      p->Link = NULL;
      s->Link = q;
      t->Link = p;
      *L = s;
    }
    
    
    int main()
    {
       Lista L;
       int i, n, e;
       
       L = NULL;
       
       printf("Ingrese valor de N ");
       scanf("%d",&n);
       
       for(i=1; i<=n; i++)
       {
         printf("\n\nInsertando e\n");
         printf("Ingrese valor de e ");
         scanf("%d",&e);
         Insertar(&L, e);
    
         printf("Lista\n");
         mostrar(L);   
       }       
    
       Intercambiar(&L);
       printf("Lista\n");
       mostrar(L);   
       
    
       system("pause");    
    }
    
    
     
  7. ~Ghost~

    ~Ghost~ Usuario Casual nvl. 2
    37/41

    Registrado:
    8 Dic 2008
    Mensajes:
    4.179
    Me Gusta recibidos:
    3
    pero troickox habia dicho que te habia preguntado por msn si ese banner iba a ser algun dia banner de portalnet y dijo que habias dicho que no :XD:

    PD: ke xuxa! :S
     
  8. +NoGodSoGood.

    +NoGodSoGood. Usuario Casual nvl. 2
    37/41

    Registrado:
    15 Feb 2007
    Mensajes:
    1.181
    Me Gusta recibidos:
    12
    pero eso no significa q use las cosas q haga....
     
  9. Lucho.-

    Lucho.- Usuario Casual nvl. 2
    37/41

    Registrado:
    19 Feb 2009
    Mensajes:
    2.505
    Me Gusta recibidos:
    3

    WTF?:silvar:
     
  10. Troicko

    Troicko Usuario Habitual nvl.3 ★
    187/244

    Registrado:
    2 Abr 2009
    Mensajes:
    24.669
    Me Gusta recibidos:
    10
    a wn si ya me lo saque xD
     
  11. ~Ghost~

    ~Ghost~ Usuario Casual nvl. 2
    37/41

    Registrado:
    8 Dic 2008
    Mensajes:
    4.179
    Me Gusta recibidos:
    3
    aaaaa :XD: en todo caso yo no lo toi defendiendo :D

    PD: y el tutorial? :XD:
     
  12. +NoGodSoGood.

    +NoGodSoGood. Usuario Casual nvl. 2
    37/41

    Registrado:
    15 Feb 2007
    Mensajes:
    1.181
    Me Gusta recibidos:
    12
    mañana lo subo
    ya chau
    me voy a hacer baners nuevos