Results 1 to 2 of 2
Thread: 2 C++
Hybrid View
-
24th November 2012 12:40 #1Registered 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 ,
, ,
-
24th November 2012 20:40 #2
.
: , ( n- - - ). , sort. compare,
true, a e "-" b; , "return a.age < b.age;" - , Person, age, .Code:bool compare_persons(Person a, Person b) ...
, , :
d , n .Code:sort(d, d + n, compare_persons_by_age);
, :
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




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in