当前位置:网站首页>保存数据
保存数据
2022-08-09 14:59:00 【李昊19961128】
#include <iostream>
#include <string>
#include <fstream>
#include <ostream>
#include <string.h>
using namespace std;
ofstream BER1;
class A{
public:
~A()
{
cout << "A" << endl;
BER1 << "A" << endl;
}
};
class B{
public:
~B()
{
cout << "B" << endl;
BER1 << "B" << endl;
}
};
class C{
public:
~C()
{
cout << "C" << endl;
BER1 << "C" << endl;
}
};
class D{
public:
~D()
{
cout << "D" << endl;
BER1 << "D" << endl;
}
};
C c;
void main()
{
BER1.open("BER1.txt");
A* pa = new A();
B b;
static D d;
delete pa;
}
边栏推荐
- 【力扣】114. 二叉树展开为链表
- Faster R-CNN 论文总结
- hugging face tutorial - Chinese translation - preprocessing
- 【Likou】1995. Statistical special quadruple
- 类定义中class和className中间的修饰词的作用有关问题
- 主成分分析——MATLAB在数学建模中的应用(第2版)
- [Deep learning] attention mechanism
- 【力扣】98. 验证二叉搜索树
- Detailed Explanation of Software Secure Memory Area
- 云模型和Logistic回归——MATLAB在数学建模中的应用(第2版)
猜你喜欢
【深度学习】前向传播和反向传播(四)
【更新中7/31】NTIRE 2022 ESR(efficient super-resolution) 方案与结果
【 graduate work weekly 】 (10 weeks)
深入浅出最优化(3) 最速下降法与牛顿法
【Postgraduate Work Weekly】(Week 12)
hugging face tutorial - Chinese translation - preprocessing
Stetman读paper小记:Backdoor Learning: A Survey(Yiming Li, Yong Jiang, Zhifeng Li, Shu-Tao Xia)
Virtualbox 设置共享文件夹
【工具使用】Modbus Slave软件使用详解
【工具使用】Keil5软件使用-基础使用篇
随机推荐
【力扣】128. 最长连续序列
时间序列分析
灰色关联分析
模糊综合评价
TOPSIS优劣解距离法
Excel绘制统计图
Face recognition sample code analysis (1) - program parameter analysis
将类指针强制转换为void*指针进行传参的使用方法
matlab讲解与使用【持续更新中ing】
图解转置卷积原理
R-CNN Fast R-CNN Faster R-CNN总结
深入浅出最优化(4) 拟牛顿法
【SQL】595. 大的国家
【Likou】1995. Statistical special quadruple
Vitis部分实验记录
Detailed Explanation of Software Secure Memory Area
Vim实用技巧_3.可视模式和命令模式
Vim实用技巧_7.模式匹配和查找
堆(heap)系列_0x02:堆的前世今生(WinDbg+Visual Studio汇编)
【Postgraduate Work Weekly】(Week 9)