Thread: business database program.

  1. #1
    Stinking it up. StinkyRyan's Avatar
    Join Date
    Jun 2004
    Posts
    61

    business database program.

    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.

    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;
    }
    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?
    Because I can't.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    13

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. program for a database
    By cluez in forum C Programming
    Replies: 1
    Last Post: 03-29-2009, 09:36 PM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  4. Programmers Database
    By sean345 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-03-2002, 01:16 AM
  5. Replies: 2
    Last Post: 05-10-2002, 04:16 PM