#include <iostream> //Simple input / output with cout / cin 
#include <string>   //contain the string functions (strcpy, strcat, strlen)
#include <iomanip>  //setprecision, setw
#include <vector>   //similar to arrays, push_back
#include <cmath>    //pow(double x, int y)
#include <sstream>  //Stringstream ss if (ss >> (int)i) {//do stuff}
#include <fstream>  // fin / fout

using namespace std;

int main(){
    int x=0;
    
    cout << "\nThe value for x is "<< x;
    cout << "\nNow enter a new value for x: ";
    cin >> x;
    cin.ignore();
    char c[]="Hello World";
    char d[256];
    char e[101];
    strcpy(d , c);
    
    cout << d;
    
    cout <<"\n\nEnter a value for e:  ";
    cin.getline(e, 100);
    
    vector <int> vInt;
    vector <int>::iterator vIter;
    
    for (int i=0; i<5; i++){
        vInt.push_back(i);
    }
    
    ofstream fout;
    char fileName[]="/home/Damien/Output.txt";
    fout.open(fileName);
    for (vIter = vInt.begin(); vIter < vInt.end(); vIter++){
        fout << *vIter <<"\r\n";
    }
    fout.close();
return 0;
}
