题解列表
#C++1227——日期排序(结构体,sort)
摘要:参考代码:#include<iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef str……
[编程入门]自定义函数处理最大公约数与最小公倍数(c++版)
摘要:参考代码:#include<iostream>using namespace std;int zd(int a,int b){ int r; while(r=a%b) { ……
C# 编写题解 1227: 日期排序(setw setfill)
摘要:```cpp
#include
using namespace std;
int a,b,c,e,num[1005];
char d;
int main()
{
while(cin>>……
[编程入门]自定义函数求一元二次方程
摘要:参考代码:#include<iostream>#include<iomanip>#include<cmath>using namespace std;double x1,x2,a,b,c,z;void……
[编程入门]自定义函数处理素数
摘要:注意事项:本题很容易超时,用cmath库里的sqrt函数来求循环终止数可以避免超时以下为c++代码参考代码:#include<iostream>#include<cmath>using namespa……
#C++1240——生日日数
摘要:思路参考注释参考代码:#include <iostream>
using namespace std;
int arr[]={0,31,28,31,30,31,30,31,31,30,31,30,……