题解列表
1125: C语言训练-委派任务*
摘要:```cpp
#include
using namespace std;
int main()
{
int a,b,c,d,e,f;
for(a=0;a……
1124: C语言训练-大、小写问题
摘要:```cpp
#include
#include
using namespace std;
int main()
{
char ch[101];
gets(ch);
……
1123: C语言训练-列出最简真分数序列*
摘要:```cpp
#include
using namespace std;
bool Judge(int &a,int &b)
{
for(int i=2;i……
1122: C语言训练-亲密数
摘要:```cpp
#include
#include
using namespace std;
mapm;
void judge(int a)
{
int result=0;
……
0916每日一题【C++】
摘要:解题思路:找到对称轴,实现字符串之间的相加注意事项:C++,而且注意如果s不定义为"A”的话,i要从0开始,且循环体要交换顺序参考代码:#include <iostream>//李政
#includ……
利用动态vector进行求解
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;int main(){ int i,j;/* int n,m;……
利用容器vector选择排序算法
摘要:解题思路:选择排序思想注意事项: 1. 传参数时要&引用,不然改变不了值2.输入值时,要利用emplace_back(i),在容器中加入值。参考代码:#include<iostream>#includ……
二级C语言-温度转换(C++版)
摘要:解题思路:在主函数中定义c,f保存摄氏温度和华氏温度,然后根据题意用for循环依次获取-100~150之间的温度,将获取的温度传入到自定义函数ctof中,在自定义函数ctof中使用公式f=32+c*9……