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

#include <iostream>
#include <string>

using namespace std;

int main()
{
   char s1[] = "abc";
   for(int i=0;i<strlen(s1);i++)
   {
      cout << s1[i];
   }
   cout << endl;
   string s2 = "abc";
   for(int i=0;i<s2.length();i++)
   {
      cout << s2[i];
   }
   cout << endl;
   return 0;
}
