lab.cpp/ex5.cpp

20 lines
330 B
C++
Raw Permalink Normal View History

2016-03-06 16:29:02 +00:00
#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;
}