View Single Post
Old 11-03-2003, 08:42 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,532
sde is on a distinguished road
int isdigit() returns a non-zero if true and a zero if false.

either way it returns an integer.

now i'm not sure on this but perhaps test for zero isntead of boolean.
Code:
if (isdigit(date[x]) == 0)  
cout << "Please enter a date dd/mm/yyyy: ";  
else  
cout << "Entry Valid\n";  
};
i'm just guessing here based on this documentation: http://www.mkssoftware.com/docs/man3/isdigit.3.asp
__________________
Mike
sde is offline   Reply With Quote