My Program Crash

My Program Crash After I insert string into function


item.setUniq(owner);//STRING
item.setPublish(publish);//STRING
item.setTitle(title);//STRING
item.setID(id);//INT
item.setPrice(price);//FLOAT
item.setQuantity(quantity);//INT
item.setisbn(isbn);//INT
string saleItem::setTitle(string title){this-> title = title;}
float saleItem::setPrice(float price){this-> price = price;}
int saleItem::setQuantity(int quantity){this-> quantity = quantity;}
string saleItem::setUniq(string uniq){this-> uniq = uniq;}
string saleItem::setPublish(string publish){this-> publish = publish;}
int saleItem::setisbn(int isbn){this-> isbn = isbn;}

this is my class function implementation
Topic archived. No new replies allowed.