lowest common multipleThere is a method for finding the lcm of numbers which makes use of prime factorization
Overloading Input Operator[code]istream& operator>>(istream& ins, rational& frac)
ins >> frac.numerator;
Overloading Input OperatorYour function should be returning an istream object not a rational object
algorithm into assembly languageLooks like intel code. Using gcc, I was able to generate this:
[code] .file "file.c"
algorithm into assembly languageWhat assembly language? There is MIPS, Intel, etc. Which one are you trying to convert it to?