Programmation VbScript: Tableaux
Fermé
ophedos
Messages postés
73
Date d'inscription
dimanche 4 mai 2008
Statut
Membre
Dernière intervention
30 mai 2016
-
Modifié par jordane45 le 25/11/2014 à 18:03
jordane45 Messages postés 38453 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 16 mars 2025 - 25 nov. 2014 à 18:17
jordane45 Messages postés 38453 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 16 mars 2025 - 25 nov. 2014 à 18:17
A voir également:
- Programmation VbScript: Tableaux
- Application de programmation - Guide
- Programmation logo tortue télécharger - Télécharger - Études & Formations
- Logiciel programmation clé voiture gratuit - Forum Programmation
- Problème de programmation digicode extel klavy 3 ✓ - Forum Loisirs / Divertissements
- Programmation télécommande porte de garage brico depot - Forum Matériel & Système
1 réponse
jordane45
Messages postés
38453
Date d'inscription
mercredi 22 octobre 2003
Statut
Modérateur
Dernière intervention
16 mars 2025
4 740
25 nov. 2014 à 18:17
25 nov. 2014 à 18:17
Bonjour,
Note min et note max
http://www.visualbasicscript.com/Minimum-and-Maximum-values-in-an-array-in-VB-script-m88232.aspx
Tri alphabétique :
https://dzone.com/articles/vbscript-array-sort
.. par contre, tu créés un tableau ( un ARRAY ) pour chaque chose .. NOMS .. NOTES ...
Ne serait -il pas mieux de faire un tableau à 2 Dimensions ?
http://www.w3schools.com/vbscript/vbscript_variables.asp
Note min et note max
http://www.visualbasicscript.com/Minimum-and-Maximum-values-in-an-array-in-VB-script-m88232.aspx
Tri alphabétique :
https://dzone.com/articles/vbscript-array-sort
.. par contre, tu créés un tableau ( un ARRAY ) pour chaque chose .. NOMS .. NOTES ...
Ne serait -il pas mieux de faire un tableau à 2 Dimensions ?
http://www.w3schools.com/vbscript/vbscript_variables.asp
nb= InputBox("Entrez le nombre d'étudiant") N=CInt(nb) dim eleve() redim eleve(N,2) ' REMPLISSAGE DU TABLEAU for i=0 to N-1 nom = InputBox ("Entrez le nom de l'étudiant" & i) note = InputBox ("Entrez la note de " & nom ) eleve(i,0) = nom eleve(i,1) = note next ' LECTURE DU TABLEAU for j = 0 to ubound(eleve)-1 msgbox "Nom: " & eleve(j,0) & " - Note:" & eleve(j,1) next