20 lines
330 B
C++
20 lines
330 B
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "ex5/Duree.h"
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
int main(){
|
|
Duree d1(0, 10, 30);
|
|
Duree d2(2, 14, 89);
|
|
|
|
cout << d1 << " + " << d2 << " -> " << d1+d2 << endl;
|
|
cout << d1 << " == " << d2 << " -> " << (d1==d2) << endl;
|
|
cout << 2 << " * " << d2 << " -> " << (2*d2) << endl;
|
|
|
|
|
|
return 0;
|
|
} |