题解列表
不高兴的津津(C++实现,两种方法:vector容器和结构体数组)
摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一……
A+B for Input-Output Practice (III)C语言
摘要:#include<stdio.h>
int main() {
int a, b;
while (scanf("%d%d", &a, &b)!=EOF) {
if (a == 0……
C++ string类:字符串问题
摘要:# C++ string类
```c++
#include
using namespace std;
int main()
{
string s;
getline(c……
C++ string类: 去掉空格
摘要:# 输出不带空格即可
```c++
#include
#include
using namespace std;
int main()
{
string s;
wh……
C++ 使用set容器完成去重和排序: 明明的随机数
摘要:# C++ set容器
头文件
```c++
#include
```
## AC代码
```c++
#include
#include
using namespace std……