当前位置:网站首页>保存数据
保存数据
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;
}
边栏推荐
- hugging face tutorial - Chinese translation - Loading pre-trained instances with AutoClass
- 【深度学习】模型选择、欠/过拟合和感受野(三)
- Vim实用技巧_5.在文件间和文件内快速移动
- CTF online encryption and decryption and common tools
- 数学规划模型
- [Paper reading] LIME: Low-light Image Enhancement via Illumination Map Estimation (the most complete notes)
- TOPSIS优劣解距离法
- 规划问题的MATLAB求解——MATLAB在数学建模中的应用(第2版)
- Vim实用技巧_3.可视模式和命令模式
- 【力扣】55. 跳跃游戏
猜你喜欢
随机推荐
【力扣】11. 盛最多水的容器
规划问题的MATLAB求解——MATLAB在数学建模中的应用(第2版)
【力扣】1154. 一年中的第几天
【力扣】17. 电话号码的字母组合
DOS命令
Hold face (hugging face) tutorial - Chinese translation - task summary
R-CNN Fast R-CNN Faster R-CNN总结
Gray Relevance Matrix——Application of MATLAB in Mathematical Modeling
Vim实用技巧_4.管理多个文件(打开 + 切分 + 保存 + netrw)
Basic Concepts of Software Security
【学习笔记】win10报0xc0000221错误无法开机
图像质量指标:峰值信噪比PSNR和结构相似性SSIM
多元回归分析
TOPSIS优劣解距离法
CTF在线加解密以及常用工具
【Postgraduate Work Weekly】(Week 8)
【Postgraduate Work Weekly】(Week 5)
【Postgraduate Work Weekly】(Week 12)
【深度学习】前向传播和反向传播(四)
堆(heap)系列_0x09:堆破坏示例(非法访问+未初始化+堆句柄不匹配)









