// @topic T060m10d25x30 class DString -- using dynamic array of characters
// @brief main driver code

#include <iostream>
#include <cstdlib>
#include <string>

#include "DString.h"


int main()
{
    std::cout << str.length() << "\n";

    while (std::cin) {
        std::cin >> str;
        std::cout
            << "you entered ["
            << str
            << "]"
            << " length: " << str.length()
            << " capacity: " << str.capacity()
            << "\n"
            ;
    }

    // examples of constructing the string:
    DString str2{ "ABC" };
    DString str3 = "ABC";

    // examples of assignment:
    str = "xyz";

    system("pause");
    return 0;
}