+ 1

C ++ programming language Please provide information about macros

29th Mar 2018, 9:28 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar
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?
29th Mar 2018, 10:18 PM
non
+ 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).
29th Mar 2018, 11:02 PM
Alex
Alex - avatar
+ 1
Thank you all very much:)
31st Mar 2018, 4:42 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar