Adresses IP
On définit une classe gérant une adresse IPv4.
On rappelle qu’une adresse IPv4 est une adresse de longueur 4 octets, notée en décimale
à point, en séparant chacun des octets par un point. On considère un réseau privé avec
une plage d’adresses IP de 192.168.0.0
Ă 192.168.0.255
.
On considère que les adresses IP saisies sont valides.
Les adresses IP 192.168.0.0
et 192.168.0.255
sont des adresses réservées.
Le code ci-dessous implémente la classe AdresseIP
.
Compléter le code ci-dessous et instancier trois objets : adresse1, adresse2, adresse3 avec respectivement les arguments suivants
'192.168.0.1', '192.168.0.2', '192.168.0.0'
Exemples
Compléter le code ci-dessous
Tronquer ou non le feedback dans les terminaux (sortie standard & stacktrace / relancer le code pour appliquer)
Si activé, le texte copié dans le terminal est joint sur une seule ligne avant d'être copié dans le presse-papier
.128013A_4:2-.Sw3/]+7bpPiNqIoF1tl(9 ;=vTm6ju8sèfrge[hcé05a,nkydx)050(0S0z0Z0s0A0N0D0V0A0Z0N0N0F010z0s0q010406050N0L0I0I0Z0Q0%040i0w0A0L0~0w0#050l1517191b130q04051r1k1u0l1r130(0s0G0?0^0`0|0^0#0R0L0Z0R0S0g0q0%0z0U1i0D0U0s0R0U0A1W0U0z11050.0p0A0S1D0_0{011V1X1Z1X0z1)1+1%0z0Q1s1R0?1e0N0q0Z0#0|0f011-1F010P0:0S0#0Z0I0S1%2224291/2c1+2f2h110a0D0r0Q0w0q0w0N0s1h0#0D0,200Q0Q0S0V2C1k2k0#1s0l1R2P1|1~1}1(0(2m1G0s0#2e2z1%1A1C0@1.2Z2#0#0w2)1%0q2I1s2N2P2_14232D2+2a2/0Q180A1%0Z1U2I0P0|030c0c0V2:0S1Z2.0w0g0y3k110D0y1k0Z2`2}122|2l2 1/313335370S39013b3d3f3h2$3k0g27040D0f3q3s243u2N2Y013z0Z341s360U383a3c3e0,3J2/3L0k3n0k3R2M3t133V3x0|3Y3!053$3(3F3*3I2!3K3l0d3n0d3?1l3^3v2~1E3y0w323Z3B3%3D3)3H3,453.3l0Y3n0Y4b2_3_2}3W3}4l413G3+3g4r3j3l0J3n0J4x4d3`4g3|4i3A3#3C3E4F443i3L0o3n0o4O3T4z3w4R3X4T4k4V4m4X434q4!3l0M3n0M4)2O4+4f2,4.4j3~404n424p4H4_0g0C3n0C4~3U4A3{534U3 4W4o4G3-4J3k0X110y0X5g504B4/555n585p4I3L0y0y5u3p0l3r3@4*4e5z544D574Y4^463k3N0y3Q5L3S4 5P5j4C4;4E4@5a5W0y3:045:5x5(4-5*5m4=5o4Z5/485=4a5#5N5%4Q525`564?595q5G4u5=4w634c5O66305A5S6a5E5b0y4L5=4N6h4y5^676m5+5T5-6c3l0y4$5=4(6v4P5i5_6z5{5,6b5F6E4{5=4}6J6j6L6y5R6A6o5~4s3k5d5=5f6W656Y6l6!6O6B6Q5b0f5t046_5@6k4h6;695}5V6(0f5I6{5K5M6i6.4,6Z5l715D6%5r0f3N7j6}6/6 7e5C5U5.745;0f3=6-5h7c6:7p5|7g737i600f62796w6~4S707q6C6R3M6e0f6g7J6K7z7o4:6=6$7E3L0f6s7(7m7X7M7B6P6p5W0f6G7=7+517A7Z7f7r6D3M6T0f6V7V6X7,5k7{7O6@7;6*0f6,837b7_7Y5B7C7}7Q0k6`8m7^5Q7.6?7:6(0k768v5g1v2@1k2)2S0(1~2X5j4G2(1B1s2?0S2^3t641s4G8O2l0s0(0|3c2N5G3B8V8X896(5I0D2q0S8%8t5r763?7L010$113x8Q6x2a0j3n8{8?0#0V110b0(2I0`0S0v0r907n0|10040e8Q137a8T2D8$018Y2}7%8#8W9o8(7i288,8.7h9r2P3r0D9E0D8|1/8^040,0P9c858~3O9N8g0|0P0I113c2!2B3c9R3W9f0B9#5j0p9f0N3g9M9k9H9e110!8Q9G91110Z960S989)4-9f0*9h9k9j2{3V9n9p243/9s9z7$3l3:8+2g8-9u8/ac9C3O9Faq9;019+119-0A9/a79d010w110ha0679{9}9 9k9_aAaC040F9^as0#aH979-9^a68Pa89taa0#3L605ma99va%9xajae7s5ra(5#aX3T5Pa*8Z4t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ensible Ă la casse)(Ctrl+I)
(Alt+: ; Ctrl pour inverser les colonnes)
(Esc)