C++ list empty function. alternate to assign modifier

Objectives :

  • myList4
    list.empty() function
  • list.size() function
  • an alternate to list assign() modifier
  • code: myList4.txt

Step: 1 Create a source file.

 

Step: 2 Edit  & Save  source file

Step: 3 Runtime Views:

Step: 4

Step: