Код: Выделить всё
#include
#include
using namespace std;
void Exit(string s){
ofstream ofs;
ofs.open("E:\\code\\file.txt",ios::out);
ofs
Подробнее здесь: [url]https://stackoverflow.com/questions/78537527/is-the-stdatexit-function-does-not-work-in-the-msvc-compiler[/url]
Мобильная версия