Object not actually being modified by a class methodOh yeah that was it.. gcd was -1 and it was dividing by -1 ... Thanks.
Object not actually being modified by a class methodI have this constructor for my rational class: [code]rational(int a,int b) { num=a; denom=b; ...
Overloading == operatorThanks.
Overloading == operatorInside my class I have defined the == operator as a friend : friend bool operator==(rational a, r...
STL map question.yeah but i can't declare map<char[20],int> so how can I do this, if it is possible ? edit: neverm...
This user does not accept Private Messages