Skip to content
Snippets Groups Projects
Commit f4512e0e authored by Gabrielle Van De Vijver's avatar Gabrielle Van De Vijver
Browse files

code editing

parent 23126687
No related branches found
No related tags found
No related merge requests found
......@@ -7,12 +7,12 @@ func MajoritySWF(p Profile) (count Count, err error) {
if err != nil {
return nil, err
}
//initialisation de la map : comptes à 0
count = make(Count,len(p))
//initialisation de la map : comptes à 0
count = make(Count)
for _,alt := range p[0]{
count[alt]=0
}
//actualisation du compte à l'aide du scrutin
//actualisation du compte à l'aide du scrutin
for _, pref := range p {
count[pref[0]]++
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment