Skip to content

Commit

Permalink
Added a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
malikbilal1997 committed Nov 25, 2019
1 parent a9b910d commit 7fd7c02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Integer List/main.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
#include <iostream>

// Including Integer List
#include "list.hpp"

int main()
{
// Declaring Int List Object
IntList l;
// Operations performed on Int List
l.push_back(10);
l.push_back(11);
l.push_back(12);
l.push_back(13);
l.push_back(14);

// Declaring an Iterator from Int List
IntList::Iterator it;
it = l.begin();

// Iterating the Int List
while (it != l.end())
{
std::cout << *it << "\n";
Expand Down

0 comments on commit 7fd7c02

Please sign in to comment.