¡@

Home 

c++ Programming Glossary: scan_oneentry_withcheck

Common macro to read input data and check its validity

http://stackoverflow.com/questions/15792984/common-macro-to-read-input-data-and-check-its-validity

15.0 Is it possible to develop a common macro like #define SCAN_ONEENTRY_WITHCHECK FORM X COND FORM format of the input data like d lf s X address.. data .... example of calling the macro in the main int a SCAN_ONEENTRY_WITHCHECK d a a 3 a 15 The macro should scan the data and IF one of the.. A quick answer for this question will be #define SCAN_ONEENTRY_WITHCHECK FORM X COND while scanf FORM X 1 COND printf Invalid input enter..