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

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++)
    {
        char buf[80];
        sprintf(buf,"%-25s: %4d MBytes", lbl[i], val[i]);
        cout << buf << endl;
    }
    return 0;
}
