ماهي فائدة Type énuméré
#8
إقتباس :program exemple32 ;
type jours=(dim, lun, mar, mer, jeu, ven, sam) ;
var today : Jours ;
begin
today := mar ;
today:=succ(today) ;
inc(today,2) ;
case today of
dim : Writeln('dimanche') ;
lun : Writeln('lundi') ;
mar : Writeln('mardi') ;
mer : Writeln('mercredi') ;
jeu : Writeln('jeudi') ;
ven : Writeln('vendredi') ;
sam : Writeln('samedi') ;
else writeln('autre, ',ord(today)) ;
end;
end.

طبق المثال أخي وستجد أنه متشابه...ابحث
لا اله الا أنت سبحانك اني كنت من الضالمين
الرد


الردود في هذا الموضوع
ماهي فائدة Type énuméré - بواسطة yassine_hell - 29-09-2011, 10:58 PM
ماهي فائدة Type énuméré - بواسطة paix144 - 29-09-2011, 11:33 PM
ماهي فائدة Type énuméré - بواسطة yassine_hell - 30-09-2011, 11:50 PM
ماهي فائدة Type énuméré - بواسطة paix144 - 01-10-2011, 11:37 PM
ماهي فائدة Type énuméré - بواسطة paix144 - 02-10-2011, 12:02 AM
ماهي فائدة Type énuméré - بواسطة me_delphi - 09-10-2011, 12:05 AM
ماهي فائدة Type énuméré - بواسطة me_delphi - 04-10-2011, 05:24 PM
ماهي فائدة Type énuméré - بواسطة yassine_hell - 05-10-2011, 01:29 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم