Advertisement
Artem_Chepurov

уц

Mar 27th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include "iostream"
  2. #include <fstream>
  3. #include <string.h>
  4. using namespace std;
  5.  
  6. int main(int argc, char* argv[])
  7. {
  8.     char s[] = "chcp 65001\nstart \"\" \"";
  9.     ofstream fout("test.bat"); // создаём объект класса ofstream для записи и связываем его с файлом cppstudio.txt
  10.     fout << s;
  11.     //здесь ты вставляешь путь файла хуй знает как
  12.     fout << "\"";
  13.     fout.close(); // закрываем файл
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement