
please wait
|
|
printDayOfBirth
(which might be more aptly named printDayOfWeek
you use =
which is assignment and not ==
which is for comparison as previously noted.str
method of std::stringstream
returns a string object by value, so this expression causes input to be extracted into a temporary which is immediately destroyed. I wouldn't have expected it to compile, but perhaps you have a non-standard extension enabled that allows binding of references to non-const objects like VC++ does by default.std::stringstream
involved here. It doesn't do what you seem to think it does.isValidDate
but discard the return value (by completely disregarding it.) On line 61 you compare the address of the function to false
which is a rather silly thing to do.