El tema es que no crea el archivo, empecé hoy con c++ y la verdad me gusta y no me gustaria rendirme por tremenda pavada, bueno el stack overflow dice que tengo que poner mas cosas xd,
#include<iostream>
#include<fstream>
#include<stdlib.h>
using namespace std;
int main() {
int age;//Guardara la edad
int month;//Guardara el mes
int year;//Guardara el año
int day;//Guardara el dia
char name[8];//Guardara el nombre
char surname[13];//Guardara el apellido
int id_number;//Guardara el numero de documento
cout<<"Tell me a year of birth: ";cin>>age;
cout<<"Tell me a month of birth: ";cin>>month;
cout<<"Tell me a day of birth: ";cin>>day;
cout<<"Tell me your name: ";cin>>name;
cout<<"Tell me your surname: ";cin>>surname;
cout<<"Tell me your number ID: ";cin>>id_number;
ofstream fs("Document.txt");
fs << "Name: "<<name;
fs << "\nSurname: "<<surname;
fs << "\nAge: "<<age;
fs << "\nDay: "<<day;
fs << "\nMonth: "<<month;
fs << "\nID Number: "<<id_number;
fs.close();
cout<<"Perfect, the document has been created!";
}