Hi,
Your VISA etc.. identifiers are ambiguous.
Change the enum identifiers to
enum CCType{ e_VISA, e_MASTERCARD, e_INVALID };
and use them where relevant, for instance:
if (Cardtype == e_VISA)
{
VISA[l]=aCreditCardNumber;
VISAamt[l]=amount;
l++;
}
Your code will compile without error, still far from operational.
cheers,
AR