(C,5,8) (Β,7,2) (Α,4,1) (D,2,-4) (Ε,1,3) (F,-2,4) (G,4,5)
void f3() - Suppose the list contains at least 4 elements. Delete the fourth element of the original list. Output in the file f3.txt must be the following:
(Χ,4,5) (Α,1,3) (B,5,8) (C,3,1) (D,-5,9) (E,7,2)
(Χ,4,5) (Α,1,3) (Β,5,8) (D,-5,9) (Ε,7,2)
void f4() - How many lions are in the list? The output in the f4.txt file should be as follows:(B,3,-4) (C,2,1) (L,4,7) (1,8,5) (J,-2,8) (W,1,9)
6
void f5() - Sort the elements descending by color. The content of the output file f5.txt must be the following:
(Μ,5,3) (Ν,9,1) (P,4,-2) (Q,1,4) (R,7,9) (T,2,8)
(R,7,9) (T,2,8) (Q,1,4) (M,5,3) (Ν,9,1) (P,4,-2)
Onaction 2.15 marke
Close
+ 150%
Zoom