cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
if wthout Else
if wthout Else
May 2, 2012 at 4:10am UTC
nimLee
(4)
if (cgdc_re_match ("^(865|866|867|868|869)$", number1) == CGDC_RE_OK)
return TRUE;
else if (cgdc_re_match ("^(765|766|767|768|769)$", number2) == CGDC_RE_OK)
return TRUE;
return FALSE;
Will is work correctly without else ,but 'return FALSE'
May 2, 2012 at 4:58am UTC
Need4Sleep
(570)
do not quite understand the question. Both statements should run correctly, if both are false then it would skip onto the return false statement. Also, im not sure if you made constants true and false, but those are case sensitive words.
Jun 22, 2012 at 5:44am UTC
nimLee
(4)
Thank you very much
Topic archived. No new replies allowed.