题解列表
C语言训练-求矩阵的两对角线上的元素之和
摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>……
不高兴的津津(C++实现,两种方法:vector容器和结构体数组)
摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一……
[编程入门]自定义函数之字符串拷贝
摘要:```cpp
#include
using namespace std;
int main(){
char a[400];
int n,m;
cin>>n;
cin>>a;
……
1029: [编程入门]自定义函数处理素数
摘要:#[编程入门]自定义函数处理素数
```cpp
#include
using namespace std;
bool f(int a){
bool k=true;
for(int i=……