C++

Objectives :

  • myListsConstructor1.cpp
     string str2[] = {"E", "F","G","H"};
    // list-class <data-type> var-name creates empty
    //list-class <data-type> var-name (copies, object);
    //list-class <data-type> var-name (beg,end);
    //var-name.~list<data-type>(); is a destructor
  • code : myListsConstructor1.txt

Step: 1 Create a source file.

Step: 3 Edit and save Source file

Step: 3 Runtime Views:

Step: