1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
class ParBCD : protected N2DigsBCD {
friend istream & operator >> (istream &,ParBCD);
friend ostream & operator << (ostream &,ParBCD);
public:
ParBCD(); // constructor por defecto
ParBCD(DigBCD,DigBCD);
ParBCD(const N2DigsBCD &);
explicit ParBCD(N2DigsBCD &);
ParBCD(uchint,uchint);
...........
typedef pair<DigBCD,DigBCD> N2DigsBCD;
enum DigBCD {c=uci(0),u=uci(1),d=uci(2),t=uci(3),q=uci(4),z=uci(5),x=uci(6),s=uci(7),o=uci(8),n=uci(9),E=uci(255)};
|