Homework
˙Design and develop and ADT that allows appropriate operations on
fractional numbers
˙Appropriate constructors, operators +, -, ==, >, >>, and << are expected
˙Examples are
fract a, b(2), c(3,3,4); // b is 2; c is 3 3/4
a = c - b ;
a = a + b ;
cout << a << b << c ;
cin >> a ;
if(a==c||b>c)
cout<<b;
--
浪漫的故事..
像是倒映在淡水的夜景...
一幕幕的..就此展開..浮散...
--
※ 發信站: 批踢踢實業坊(ptt.twbbs.org)
◆ From: samho.m7.ntu.edu.tw