Sfoglia il codice sorgente

Delete enumerators sample

Daniele Bartolini 13 anni fa
parent
commit
e257fae71c

+ 0 - 30
samples/enumerators/DictionaryEnumerator.cpp

@@ -1,30 +0,0 @@
-#include "Dictionary.h"
-#include <iostream>
-#include <stdio.h>
-
-using namespace std;
-
-int main()
-{
-  Dictionary<int, int> dict;
-  int k = 20;
-
-  for(int i=0; i<k; i++)
-    dict[i] = 10*i;
-
-  Dictionary<int, int>::Enumerator e = dict.getBegin();
-  while (e.next())
-  {
-    cout << "[" << e.current().key << "," << e.current().value << "] ";
-  }
-  cout << endl;
-
-  Dictionary<int, int>::Enumerator eb = dict.getEnd();
-  while (eb.prev())
-  {
-    cout << "[" << eb.current().key << "," << eb.current().value << "] ";
-  }
-  cout << endl;
-
-  getchar();
-}

+ 0 - 30
samples/enumerators/ListEnumerator.cpp

@@ -1,30 +0,0 @@
-#include "List.h"
-#include <iostream>
-#include <stdio.h>
-
-using namespace std;
-
-int main()
-{
-  List<int> list;
-  int k = 20;
-
-  for(int i=0; i<k; i++)
-    list.Append(i);
-
-  EnumeratorHelper<int> e = list.getBegin();
-  while (e.next())
-  {
-    cout << e.current() << " ";
-  }
-  cout << endl;
-
-  EnumeratorHelper<int> eb = list.getEnd();
-  while (eb.prev())
-  {
-    cout << eb.current() << " ";
-  }
-  cout << endl;
-
-  getchar();
-}