Results 1 to 5 of 5

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171

    , , (*head) , ?
    pointer to pointer

    Code:
    void pop(student **head)
    {
      student *temp=*head;
      *head=(*head)->Next;//a    
      free(*temp);
    
    }
    Last edited by lludmill; 11th December 2010 at 19:30.
    If you understand what you're doing, you're not learning anything.

  2. #2
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    , '->' - '*'.

    ,

    Code:
    *head=*(head->Next);
    .

  3. #3
    Registered User
    Join Date: Aug:2003
    Location:
    Posts: 175
    (* head) . :
    Code:
    *head=*(head->Next)
    head head->Next , head Next, (student *) . *head = temp->Next temp - *head.

    . - int . ( , ). - ( ):
    Code:
    int x=5, y=7, z=14;
    int *p = &x; //   p     x
    int **pp = &p; //   pp     p
    *p = 4; //    x=4
    **pp = 3; //    x=3,  *pp  p,  **pp   *p
    *pp = &y; //    p=&y
    *p = 8; //    y=8,      p   y
    **p = 9; //     y=9;
    p = &z; //   
    **pp = 15; // z  15,  pp  p,  p   z.
    , . .
    Last edited by ivv; 2nd January 2011 at 18:15.

  4. #4
    Registered User
    Join Date: Jun:2010
    Location:
    Posts: 171


    ---------- 02:36 ---------- 02:07 ----------

    If you understand what you're doing, you're not learning anything.

  5. #5
    Registered User
    Join Date: Feb:2006
    Location: Plovdiv
    Posts: 392
    Quote Originally Posted by ivv View Post
    (* head) . :
    Code:
    *head=*(head->Next)
    head head->Next , head Next, (student *) . *head = temp->Next temp - *head.
    , ++.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |