Results 1 to 2 of 2

Thread: 2 C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Jun:2011
    Location: varna
    Posts: 23

    2 C++

    , ,, . b[i] .
    - / - , . , 1 /- - /- 3/4,5,6...n/- - - 19,20,25,35,32 " - 19,20,25", 19/ / n/2,3,4,5,6.../- -// / - -

    / void ime_na_funkciq(array d[N]) - , , , , strcmp ,


    , ,

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

    : , ( n- - - ). , sort. compare,

    Code:
    bool compare_persons(Person a, Person b) ...
    true, a e "-" b; , "return a.age < b.age;" - , Person, age, .

    , , :

    Code:
    sort(d, d + n, compare_persons_by_age);
    d , n .

    , :

    Code:
    void ime_na_funkciq(Person d[]) ...
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

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 |