il me met see declaration of Station
et 'Station' : 'class' type redefinition
pourtant j'ai crée une seul fois la classe Station
Je vous met la classe
#include "stdafx.h"
#include<iostream>
#include "test.h"
#include "test3.h"
using namespace std;
Station::Station()
{
_temps=0;
for(int i=0;i<6;i++) {
_com.SetG(i,0); //G étant un tableau avec 6 entiers
}
}
Station::Station(double& t,Commande& c)
{
_temps=t;
_com=c; //dans Commande on défini les 6entiers dans le Tableau G
}
Commande& Station::getCommande()
{
return _com;
}
double Station::getemps()
{
return _temps;
}
void Station::SetCommande(Commande& c)
{
_com=c;
}
void Station::Setemps(double& nb)
{
_temps=nb;
}