I'm starting a business soon and decided i need a program to run the data base of customers, I know already that i'm going to use an mysql database (i'm running slackware 1.0 so dont tell me to use ms access) im planning it all out now, but im a little lost as to how to go about it, i decided to write a class customer to hold the info here is what i've come up with.
I know i have to use mysql++ to connect with the database and such but am I on track on making a class like this?Code:class customer { public: customer (); customer (string Tname, string Taddress, string Torder, string Tphone, int Tserial, float Tcost_total, float Tshipping, float Tcost); ~customer (); protected: string name; string address; string order; string phone; int serial_number; float cost_total; float shipping; float cost; }; //I'm only adding the constructor that's mainly used customer::customer(string Tname, string Taddress, string Torder, string Tphone, int Tserial, float Tcost_total, float Tshipping, float Tcost) { name = Tname; address = Taddress; order = Torder; phone = Tphone; serial_number = Tserial; cost_total = Tcost_total; shipping = Tshipping; cost = Tcost; }



LinkBack URL
About LinkBacks
) im planning it all out now, but im a little lost as to how to go about it, i decided to write a class customer to hold the info here is what i've come up with.


