void getcodes()
{
string temp;
double size;
do
cin >> temp;
size = temp.length(); // here
if (size == 0) // and here is the problem "error c2061 identifier 'size' "
break;
if (validate(temp))
{
codes [count] = temp;
count++;
}
else
{
cout << "Input sucks. Try again. This time with 10 digits" << endl;
cout << "with 0 or 3 dashes in it," << endl;
cout << "with an optional x at the end " << endl;
}
while (count < 100);
}
The error is c2061 identifier error on the lines in these two statements
[code]
size = temp.length();
if (size == 0)
[\code]
my error is : c2061 identifier 'size' from the lines
size = temp.length();
if (size == 0)
This post has been edited by emaster: 05 March 2009 - 02:13 AM

New Topic/Question
Reply



MultiQuote




|