求最大值、求余数:

 1 #include <stdio.h>
 2 
 3 #define SURPLUS(A,B) ((A)%(B)) 
 4 #define max(A,B) (A>B ? A:B)
 5 
 6 main()
 7 {
 8     printf("%d\n",max(2,3));
 9     //getch();
10     return 0;
11 }

 

相关文章:

  • 2022-12-23
  • 2021-11-02
  • 2021-06-27
  • 2020-02-16
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-12
  • 2022-01-30
  • 2022-12-23
相关资源
相似解决方案