#include <iostream.h> // header file
#include <conio.h>
using namespace std;
class price
{
public: // program public part
int rupees, paisas;
price () {};
price (int,int);
price operator + (price);};
price::price (int x1, int y1) {
rupees = x1;
paisas = y1; }
price price::operator+ (price money) {
price convert;
convert.rupees = rupees + money.rupees;
convert.paisas = paisas + money.paisas;
return (convert); }
int main () {
price x1 (10,60);
price y1 (13,2);
price z1;
z1 = x1 + y1;
cout <<"\n\n\n\n\n\n\t\t<********( PRICE IS "<<z1.rupees << " RUPEES " <<"AND "<<z1.paisas<<" PAISAS )********>";
getch();
return 0;
system("pasure");
}
Dear Fellow Students...
CS201 Assignment#4...Idea Solution By Eagle Eyes...Download Attachment....
If you miss this mail with attachment...Click on below Link for Direct Download...
--
█▓▒░ Hafiz Salman Majeed░▒▓█
| |||||||||||||
MBA -III (Finance Group) |
LAHORE
اللہ آپ کو آسانیاں عطا فرمائے۔
جزاكم الله خيرا وأحسن الجزاء في الدنيا والأخرة
--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.
No comments:
Post a Comment