Is max(a,b) defined in stdlib.h or not?

后端 未结 5 581
旧时难觅i
旧时难觅i 2021-02-04 00:55

I\'m using two computers, each with a different version of visual studio. On the visual studio 2008 computer my code compiles. On the visual 2010 computer my code doesn\'t compi

5条回答
  •  太阳男子
    2021-02-04 01:25

    In Visual C++, if you #define NOMINMAX before including the standard headers, you will not get a macro max or min.

提交回复
热议问题