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

using namespace std;

int main()
{
    char lbl[][32] = { "Total mængde ram", "Brugt ram", "Ram tilbage",
                       "Total mængde virtuel ram", "Brugt virtuel ram", "Virtuel ram tilbage" };
    int val[] = { 2146, 621, 1525, 2147, 8, 2139 };
    for(int i = 0; i < 6; i++)
    {
        cout.setf(ios::left);
        cout << setw(25) << lbl[i] << ": ";
        cout.unsetf(ios::left);
        cout.setf(ios::right);
        cout << setw(4) << val[i] << " MBytes" << endl;
        cout.unsetf(ios::right);
    }
    return 0;
}
