当前位置: 首页 > news >正文

9.8C++作业 - 实践

思维导图

#include
#include
#include
using namespace std;
class Stu
{
friend ofstream &operator s1;
s1.push_back(Stu("yy","1001",19,97));
vector s2;
s2.push_back(Stu("dd","1002",19,94));
vector s3;
s3.push_back(Stu("hh","1003",20,96));
ofstream ofs;
ofs.open("D:\\Qt\\qt-project\\hq\\day8\\test6\\stu_txt",ios::out);
for(const auto &stu : s1)
{
ofs > buf)
{
cout << buf << endl;
}
ifs.close();
return 0;
}
#include
#include
using namespace std;
void list_printf(list &l)
{
list::iterator iter;
for(iter = l.begin(); iter != l.end(); iter++)
{
cout  l1;
l1.push_back(10);
l1.push_back(20);
l1.push_back(30);
l1.push_back(40);
l1.push_back(50);
cout  l2 = l1;
cout  l3(l1.begin(),l1.end());
cout  l4(6,6);
cout  l5;
l5.assign(l1.begin(),l1.end());
cout  l6 = l4;
cout << "l6:";
list_printf(l6);
l6.remove(20);
list_printf(l6);
l6.clear();
list_printf(l6);
return 0;
}

http://www.zskr.cn/news/9469.html

相关文章:

  • 如何用 Dify 无代码工作流实现 AI 自动化抓取与分析 LinkedIn 招聘数据
  • 2025/9/22
  • WSL+共享文件夹搭建zephyr工作环境
  • 如果 Spring Cloud Feign 配置了 OkHttp3 非阻塞 IO(NIO),那么还需要reactor 模型来提高性能吗
  • LLM的MCP协议通讯方式详解:Stdio、SSE与流式HTTP的选择与实践 - 详解
  • AI 编程工具选型速览(2025-09 版) - 详解
  • 爆款游戏背后:尚娱如何借助阿里云 Kafka Serverless 轻松驾驭“潮汐流量”?
  • yakit + proxifier 解决`all tls strategy failed报错
  • 详细介绍:传输层TCP 与 安全层SSL/TLS
  • spring ai基于内存RAG尝鲜
  • 基于 IOCP 的协程调度器——零基础深入浅出 C++20 协程
  • Gitee PPM风险矩阵:数字化转型中的项目管理预警雷达
  • 同一个灰色,POI取出来却是白色:一次Excel颜色解析的踩坑记录
  • 「线性代数」矩阵运算与初等变换
  • Uni-App 使用android studio打包最新教程
  • Centos系统切换为光盘本地源
  • 深入解析:颜群JVM【01】类的生命周期_JMM_volatile
  • 【公益福利】Agent Router注册即送200刀!仅限Github/Linux.do用户,手慢无!
  • 「KDOI-07」能量场
  • AfriMed-QA
  • 基于LQR控制器的柔性机械臂抑振
  • 202312_Dest0g3_StrageTraiffic
  • 【前端高频面试题】- React篇 - 指南
  • PDF24 Creator(完全免费多功能PDF工具箱) 易于使用 多语言支持 - 教程
  • 彩笔运维勇闯机器学习--lasso回归
  • IP地址的配置
  • vscode彻底删除安装过的插件和个人配置信息
  • 冰箱 EMC 测试中 RE 超标?近场探头定位干扰源实操指南
  • Codeforces Round 1052 (Div. 2) E. Yet Another MEX Problem
  • 9.21 判断推理 6/10