题解列表

筛选

2813: 药房管理

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long m,n,s=0,sum=0;  ……

使用string实现数字分离

摘要:解题思路:使用string拿到用户输入的字符串利用size函数求出字符串大小利用for循环逐个输出用户的字符注意事项:输出每个字符后需要加上空格参考代码:#include<iostream>using……

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

摘要:解题思路:用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,……