题解 1037: [编程入门]宏定义的练习
摘要:##思路
`a%b`即可。
##代码
```cpp
#include
using namespace std;
int main(){
int a,b;
cin>>a>>b;
……
编写题解 1037: [编程入门]宏定义的练习
摘要:```c
#include
#define compute(a,b) result=a%b;
int main()
{
int a,b,result;
scanf("%d %d",&a……
使用宏定义写取余运算
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;// 定义求余数的宏// 注意:除数b不能为0,使用时需确保#define MO……