Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Robert Lafore 1 Attachment(s) Fraction Calculator with 4 functions in c++ [ex12 of ch#5] It adds only fractions like 2/3+4/3 (requirement is question). Program ki Samajh aaye tu mujhe bhi samjha daina! Ab tu mujhe khud ko hi samjh nai aa rahi :wink: Exectable is also attached for convenience . Code: #include |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Thank you bhai... Achha hay ye:book1: |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] yar is main to - * or / waly ni han pleas tell me understand me:argue: |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Sab kucch hay yar, There are separate functions for subtraction, multiplication & division ... We've just called that functions, and used if statement to recognize that to which function we've to call... We can also use switches instead of if statement .. |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Robert Lafore Fraction Calculator with Proper LCM Function :) Code: #include |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Robert Lafore ahem...koi isko classes use krtay hwe bna skta hai?? |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Robert Lafore well, just create a new class . something like this... Code: class calculator Code: calculator mycal; Code: mycall.myfunction(); |
Re: Fraction Calculator with 4 functions in c++ [ex12 of ch#5] Robert Lafore Quote:
i we have o add constructors, then how should we do it?? |
All times are GMT +5. The time now is 07:38 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.