Abdallah
C'était mieux si vous aviez mentionné le nom de la langue. Dans la structure VB.net Student{ Dim ID en tant qu'entier Dim Nom en tant que chaîne Dim Nationalité en tant que chaîne Dim Sexe en tant que chaîne } sub main() Dim STDs(20) en tant qu'étudiant STD(0).ID=1001 STD(0).Name= "M. XXXXX" STD(1).ID=1001 STD(1).Name="M. XXXXX" End sub
At C# public struct Student{ public int ID ; chaîne publique Nom ; chaîne publique Nationalité; chaîne publique Sexe; } class Program{ static void Main(String[]abc){ Student[]STDs=new Student[20]; STDs[0].ID="1001" ; MST[1].Nom="Mr.XXXXX" ; } }