I have this program that is a publishing company. Im doing the programs from my book. Everything is working fine except one thing. When the user inputs a title or tape name longer than one letter it goes crazy and basically crashes. heres the line i think needs help the char title part
Code:class Publication //base class { private: float price; //price of book and tape char title; //title of book or tape -- i think this part needs help public: Publication () : price(0) // construct price to 0, {} void getdata() // get user info { cout << "Enter title "; cin>>title; cout << "Enter price "; cin>>price; }
-- If you need the whole program let me know which you probably will need. I just dont know how to post attatchments on this thing.