Woups, y'a un p'tit fuck dans le fichier de training.
This commit is contained in:
parent
2db47abee0
commit
c330afc0e3
@ -10,7 +10,7 @@ namespace JeuHoy_WPF_Natif.Model {
|
|||||||
public List<Squelette> ChargerCoordonnees(string fichier) {
|
public List<Squelette> ChargerCoordonnees(string fichier) {
|
||||||
List<Squelette> lstSql = new List<Squelette>();
|
List<Squelette> lstSql = new List<Squelette>();
|
||||||
string sLigne = "";
|
string sLigne = "";
|
||||||
string[] sTabElements = null;
|
string[] sTabAttributs = null;
|
||||||
|
|
||||||
if (!File.Exists(fichier))
|
if (!File.Exists(fichier))
|
||||||
return lstSql;
|
return lstSql;
|
||||||
@ -25,13 +25,13 @@ namespace JeuHoy_WPF_Natif.Model {
|
|||||||
int nbAttributs = Convert.ToInt32(sLigne);
|
int nbAttributs = Convert.ToInt32(sLigne);
|
||||||
|
|
||||||
for (int i = 0; i < nbElements; i++) {
|
for (int i = 0; i < nbElements; i++) {
|
||||||
double[] doubles = new double[nbElements - 1];
|
double[] doubles = new double[nbAttributs];
|
||||||
sLigne = lecteur.ReadLine();
|
sLigne = lecteur.ReadLine();
|
||||||
sTabElements = sLigne.Split('\t');
|
sTabAttributs = sLigne.Split('\t');
|
||||||
for (int j = 0; j < sTabElements.Length - 1; j++) {
|
for (int j = 0; j < sTabAttributs.Length - 1; j++) {
|
||||||
doubles[j] = Convert.ToDouble(sTabElements[j]);
|
doubles[j] = Convert.ToDouble(sTabAttributs[j]);
|
||||||
}
|
}
|
||||||
string rep = Convert.ToInt32(sTabElements[sTabElements.Length - 1]).ToString();
|
string rep = Convert.ToInt32(sTabAttributs[sTabAttributs.Length - 1]).ToString();
|
||||||
lstSql.Add(new Squelette(doubles, rep));
|
lstSql.Add(new Squelette(doubles, rep));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ namespace JeuHoy_WPF_Natif.Model {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
sw.WriteLine(lstData.Count);
|
sw.WriteLine(lstData.Count);
|
||||||
sw.WriteLine(CstApplication.SKELETONCOUNT);
|
sw.WriteLine(CstApplication.SKELETONCOUNT * 2);
|
||||||
foreach (Squelette s in lstData) {
|
foreach (Squelette s in lstData) {
|
||||||
foreach (double point in s.Points) {
|
foreach (double point in s.Points) {
|
||||||
sw.Write(point.ToString() + "\t");
|
sw.Write(point.ToString() + "\t");
|
||||||
|
Loading…
Reference in New Issue
Block a user