![]() |
|
#1
|
|||
|
|||
Operator OverloadingI'm sinking fast and need some help. I'm taking my second semester of c++ programming and for this assignment I need to create a class and use overloaded operators to input and output and ex.
Define and implement a class named Rectangle. Its partial declaration is given below: CPP / C++ / C Code:
Write a program to test your class. The program should provide a menu to a user to read, plot, scale, and move a rectangle, as well as enter another rectangle for comparison. The following is an example when running the program. I am so very very lost. Can anyone suggest any resource that will go VERY slowly or give me some pointers on where to start. Last edited by admin : 10-Apr-2009 at 10:52.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Operator OverloadingHere is how you would apply the constructors and the scale:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The