
#include <iostream>
#include "duree.h"
using namespace std;
int main()
{
Duree duree1(0, 203, 158);
cout<<Duree1;
return 0;
}
#ifndef DUREE_H_INCLUDED
#define DUREE_H_INCLUDED
class Duree
{
public:
Duree(int heures = 0, int minutes = 0, int secondes = 0);
private:
int m_heures;
int m_minutes;
int m_secondes;
};
#endif // DUREE_H_INCLUDED
#include "Duree.h"
Duree::Duree(int heures, int minutes, int secondes)
}
m_heures = heures;
m_minutes = minutes;
m_secondes = secondes;
if (m_secondes >= 60)
{
while (m_secondes >= 60)
{
m_seconde -= 60;
m_minutes += 1;
}
}
if (m_minutes >= 60)
{
while (m_minutes)
{
m_minutes -= 60;
m_heures += 1;
}
}
}



Duree& operator=(std::string Data)
{
// do whatever you need to.
return *this;
}
