Untitled
unknown
plain_text
a year ago
441 B
7
Indexable
Never
#include <iostream> #include "StaticList.h" using namespace std; int main() { StaticList MyList; if (MyList.empty()) { cout << "List is empty" << endl; } else { cout << "List has elements" << endl; } int x = 2; for (int i = 0; i < 5; i++) { MyList.insert(x, i); x += 2; } MyList.display(cout); cout << endl; MyList.erase(2); MyList.display(cout); }