// 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>

using namespace std;

int main()
{
    vector<char> v(4, ' ');
    cout << "Enter 4 letters and return: ";
    for(int i = 0; i < 4; i++)
    {
        cin >> v[i];
    }
    for(int i = 0; i < v.size(); i++)
    {
        cout << v[i];
    }
    cout << endl;
    return 0;
}
