// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
#include <iostream>
#include <vector>
#include <cstdlib>

using namespace std;

#include "S.h"

int main()
{
   S *a = S::Instance();
   a->Add("A");
   S *b = S::Instance();
   b->Add("B");
   S *c = S::Instance();
   vector<string> *v = c->List();
   for(int i = 0; i < v->size(); i++)
   {
      cout << v->at(i).c_str() << endl;
   }
   return EXIT_SUCCESS;
}
