当前位置: 首页 > 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.jsqmd.com/news/1434/

相关文章:

  • (一)React面试(虚拟DOM/类组件) - 详解
  • 浏览器访问页面卡顿刷新页面方法
  • 完整教程:散斑深度相机原理
  • k8s Understanding Kubernetes Security Components
  • 如何用 Dify 无代码工作流实现 AI 自动化抓取与分析 LinkedIn 招聘数据
  • 2025/9/22
  • WSL+共享文件夹搭建zephyr工作环境
  • 如果 Spring Cloud Feign 配置了 OkHttp3 非阻塞 IO(NIO),那么还需要reactor 模型来提高性能吗
  • 数据结构-单链表基础2
  • LLM的MCP协议通讯方式详解:Stdio、SSE与流式HTTP的选择与实践 - 详解
  • G1垃圾回收过程
  • Trellix自动化大规模修复开源漏洞,已修补超6万个项目
  • AI 编程工具选型速览(2025-09 版) - 详解
  • 爆款游戏背后:尚娱如何借助阿里云 Kafka Serverless 轻松驾驭“潮汐流量”?
  • Vben Admin5.0 keepAlive缓存和onActivated未生效
  • yakit + proxifier 解决`all tls strategy failed报错
  • 版本速递 | 华为云Versatile智能体平台 新增特性介绍(2025年9月发布)
  • 详细介绍:传输层TCP 与 安全层SSL/TLS
  • PE程序常见脱壳方案
  • spring ai基于内存RAG尝鲜
  • 基于 IOCP 的协程调度器——零基础深入浅出 C++20 协程
  • Gitee PPM风险矩阵:数字化转型中的项目管理预警雷达
  • 同一个灰色,POI取出来却是白色:一次Excel颜色解析的踩坑记录
  • 坤驰科技携国产化MTCA解决方案,亮相大科学装置控制系统研讨会
  • 找出所有项目引用了哪些 NuGet 包、版本号、对应项目路径,并筛选出“同一个包名但版本不同”的情况。
  • 人形机器人 —— 电机控制的三种模式 —— 力矩、速度、位置
  • 解决Windows更新后WPF代码报TypeLoadException异常的困难
  • PC与基恩士PLC通信的C#实现
  • Excel 表格技能
  • labelme标注后的json文件和原图同步按角度旋转