• BC3 template library

    From Jcurtis@VERT to ALL on Fri Jul 4 14:42:03 2025
    A short example using BIDS classes, from page 237 of the Borland C++ Programmers Guide (version 3.1). Stepping through it with the debugger
    F7 key shows what's inside. Compile with the debug library.

    #include <iostream.h>
    #include <strstream.h>
    #include <arrays.h>
    #include <strng.h>

    typedef BI_SArrayAsVector < String > lArray;

    int
    main ()
    {
    lArray a (2);
    for (int i = a.arraySize (); i; i--) {
    ostrstream os;
    os << "string" << i << ends;
    a.add (*(new String (os.str ())));
    }
    cout << "array elements; \n";
    for (i = 0; i < a.arraySize (); ++i) {
    cout << a[i] << endl;
    }
    return (0);
    }

    * SLMR 2.1a *

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net