//#define DEBUG   

  
#ifdef DEBUG   
#define debug(...) printf( __VA_ARGS__)    
#else   
#define debug(...)   
#endif   


这样的话在提交的时候也不用注释掉一些调试的时候需要打印的中间数据了,very good

相关文章:

  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-11-11
  • 2022-01-27
猜你喜欢
  • 2021-09-16
  • 2022-02-04
  • 2021-04-30
  • 2021-03-27
  • 2021-09-12
  • 2021-11-27
相关资源
相似解决方案