#include <iostream.h>
const int MAXLENGTH=81; // The maximum credit card entry length
//Function Prototypes
int ValidateCard(char);
int main ()
{
char MyCredit [MAXLENGTH];
cout << "Please enter your credit card number for a fast and accurate validity check.";
cin >> MyCredit [MAXLENGTH];
cout << ValidateCard (MyCredit [MAXLENGTH]);
return 0;
}
that's the source code he gave me, i don't know C++, only C, so i can't help him that much. do you guys see anything blatantly wrong?
he says he's having trouble with his function prototype... can somebody show her how to make one for ValidateCard, whose input is MyCredit and returns a boolean value.
thanks!
const int MAXLENGTH=81; // The maximum credit card entry length
//Function Prototypes
int ValidateCard(char);
int main ()
{
char MyCredit [MAXLENGTH];
cout << "Please enter your credit card number for a fast and accurate validity check.";
cin >> MyCredit [MAXLENGTH];
cout << ValidateCard (MyCredit [MAXLENGTH]);
return 0;
}
that's the source code he gave me, i don't know C++, only C, so i can't help him that much. do you guys see anything blatantly wrong?
he says he's having trouble with his function prototype... can somebody show her how to make one for ValidateCard, whose input is MyCredit and returns a boolean value.
thanks!