Code:
void customer::input()
{
	cout<<"Please enter the card name: ";
	cin>>cardname;
	cout<<"Please enter the credit limit: ";
	cin>>creditlimit;
	cout<<"Please enter the amount spent: ";
	cin>>amountspent;
	calculate();
}