Results 1 to 14 of 14

Thread:

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Dec:2005
    Location: Bulgaria
    Posts: 55

    ! ,
    :
    . , .
    ! :wink:
    <Asrock K8NF4G-SATA2><Sempron64 3000+@2502Mhz@1,35V><Fortrn 300W><HITACHI 80GB SATA2>

  2. #2
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Code:
    #include <list>
    
    int main()
    {
        std::list<int> list;
        
        // ...
        
        list.reverse();
    }

  3. #3
    1336.5 artanis's Avatar
    Join Date: Dec:2004
    Location:
    Posts: 184
    , STL ...
    , SyncMstr, . , , ...
    42;

  4. #4
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Quote Originally Posted by artanis View Post
    , STL ...

    . . APL ( ).

  5. #5
    Registered User
    Join Date: Dec:2005
    Location: Bulgaria
    Posts: 55
    . stl, .
    ++
    <Asrock K8NF4G-SATA2><Sempron64 3000+@2502Mhz@1,35V><Fortrn 300W><HITACHI 80GB SATA2>

  6. #6
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    - . - begin end , previous next .

  7. #7
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448

    Post

    -, - ...

    Code:
    List reverse(List l) {
       if (l.empty()) return l;
       ListElement le = l.extractFirstElement();
       List temp = reverse(l);
       temp.addToBack(le);
       return temp;
    }
    List 4-, extractFirstElement, addToBack empty
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  8. #8
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Quote Originally Posted by anrieff View Post
    Code:
    List reverse(List l) {
       if (l.empty()) return l;
       ListElement le = l.extractFirstElement();
       List temp = reverse(l);
       temp.addToBack(le);
       return temp;
    }

    . - .

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 |