// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <vector>
#include <cstring>

using namespace std;

int main()
{
    vector<char> v;
    cout << "Enter some letters and return: ";
    char buf[1000];
    cin.getline(buf, sizeof(buf));
    for(int i = 0; i < strlen(buf); i++)
    {
        v.push_back(buf[i]);
    }
    for(int i = 0; i < v.size(); i++)
    {
        cout << v[i];
    }
    cout << endl;
    return 0;
}
