Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Have a chas(urdu wala) and smile...................

Views: 684

Replies to This Discussion

Fellows here is a sol but an error in compiling

Attachments:

why are you people uploading a single code full of errors again and again......

#include
#include
#include
using namespace std;
class Customer
{
friend int Bill(int);
private:
string Name;
int Customer_Id,Spending;

public:

Customer()
{
Name="person 1";
Customer_Id=0;
Spending=0;
}
Customer(string n,int i,int s)
{
Name=n;
Customer_Id=id;
Spending=s;
}
void setter()
{
cout"Enter Name Of Customer : "; cin>>Name;
cout"Enter Id Of Customer : "; cin>>Customer_Id;
cout"Enter Total Spending Of Customer : "; cin>>Spending;
}
void getter()
{
cout"Name : ""ID : ""Spending : ""Total Bill : "5000) { cout"1nd condation"<5000 && s<10000) { cout"2nd condation"<10000)
{
cout"3nd condation"; Discount=s*3/100; Tax=s*15/100; s=s+Tax; s=s-Discount; } return s; } int main(int argc, char *argv[]) { Customer *obj1; obj1=new Customer; Customer *obj2; obj2=new Customer("ALI",223,8550); Customer *obj3; obj3=new Customer; cout"Bill detail for customer 1,initialized with default constructor"<getter();

cout"Bill detail for customer 2,initialized with Parameterized constructor"<getter();

obj3->setter();
cout"Bill detail for customer 3,inputs entered by user"<getter();
system("PAUSE");
return EXIT_SUCCESS;
}

dear there are 21 error in this solution....

wrong one, where is friend function implementation...!!!

sb galat solution kion post krtay ho..?????

wrong hai, dont copy this one, ok

to tahir bhai ap theek kun nhi uplod krty ho ??

mail me:

tahirramzan1@yahoo.com

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service