12345678910111213141516
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { string note; ofstream myfile; myfile.open ("note.txt"); cin >> note; myfile << note; myfile.close(); return 0; }
std::getline(std::cin, note);