Etudes/BTS/C++/TestCadran/main.cpp

25 lines
437 B
C++
Raw Permalink Normal View History

2016-10-14 15:52:18 +00:00
#include <iostream>
#include "Cadran.h"
using namespace std;
int main()
{
Cadran leCadran;
Cadran leCadran0(15, 1);
for(int i = 1; i <= 10; i++)
{
leCadran.Afficher(i, 5);
usleep(LAG);
}
leCadran.Afficher("Fin", 2);
for(int i = 1; i <= 15; i++)
{
leCadran0.Afficher(i, 5);
usleep(LAG);
}
leCadran.Afficher("Termine", 15);
return 0;
}