Open the folder C++

Open the folder C

C ++

script


#include <fstream>
#include <windows.h>
#include <cfloat>
#include <iostream>
#include <string>
using namespace std;

int main() {
  string clas;
  cout<<"entre name: ";
  getline(cin,clas);
  string str = " ";
  char ch;
  while ((ch = std::cin.get()) != 27) {
    str += ch;






string filname = clas +" .txt";
ofstream playfilname(filname.c_str());
playfilname<<"\n"<<str;
//cin.get();

  }
return 0;
}