View Single Post
  #7  
Old 07-10-2011, 07:09 PM
BSIT07-01's Avatar
BSIT07-01 BSIT07-01 is offline
Addicted to Computer


 
Join Date: Sep 2007
Location: ------------
Age: 34
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default 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
{
 private:
 
 public:

}
then move all functions to the public part of class ... then in main part create new object from class like this
Code:
calculator mycal;
then where all functions are called in the main part of program . call them using
Code:
mycall.myfunction();
i think this should work...
Reply With Quote