题解列表

筛选

简单方法求解带参数宏定义练习

摘要:解题思路:用define(宏)定义一个交换函数在主函数中调用此函数注意事项:定义中的宏中的temp需定义出来,否则编译报错参考代码:#include<iostream>using namespace ……

优质题解Hahahahaha

摘要:解题思路:#include<stdio.h>int main(){    printf("cock=0,hen=25,chicken=75\n");    printf("cock=4,hen=18,……