+ 1
C ++ programming language Please provide information about macros
4 Answers
+ 1
ćļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć Nothing wrong with macros if implemented correctly. Just like global variables, saying they're bad practice is a fallacy born of misunderstanding the mechanics of C/C++. How would you prevent header duplication (in chains of dependencies) without them?
+ 1
ćļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć I never heard about this doubles are bad thing to be honest. Where did you get told that and what was the reason? I heard the opposite here and there (don't use float, but double).
+ 1
Thank you all very much:)