lab.cpp/tp2.cpp

19 lines
248 B
C++
Raw Normal View History

2016-03-05 22:37:08 +00:00
#include <iostream>
#include "tp2/ZFraction.h"
using namespace std;
int main(){
2016-03-06 16:29:02 +00:00
ZFraction f1(1, 2);
ZFraction f2(1, 4);
2016-03-05 22:37:08 +00:00
2016-03-06 16:29:02 +00:00
cout << f1 << "+" << f2 << " = " << f1+f2 << endl;
cout << f1 << "*" << f2 << " = " << f1*f2 << endl;
2016-03-05 22:37:08 +00:00
return 0;
}