Changeset 3731 in orxonox.OLD for orxonox/trunk/src/orxonox.cc
- Timestamp:
- Apr 6, 2005, 12:44:49 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r3678 r3731 723 723 printf(" Removing 1st reference from list:\t%11.2f\n", mi); 724 724 725 725 726 printf("\nList operations tests: \t\t\t\t\t%i\n", LIST_MAX); 727 list = new tList<char>(); 728 printf(" Adding[1..10] elements to list, found:\n"); 729 list->add("1"); 730 list->add("2"); 731 list->add("3"); 732 list->add("4"); 733 list->add("5"); 734 list->add("6"); 735 list->add("7"); 736 list->add("8"); 737 list->add("9"); 738 list->add("10"); 739 740 /*give list out */ 741 iterator = list->getIterator(); 742 name = iterator->nextElement(); 743 printf(" List Elements: \t\t"); 744 while( name != NULL) 745 { 746 printf("%s,", name); 747 name = iterator->nextElement(); 748 } 749 delete iterator; 750 printf("\n"); 751 752 753 int c = 0; 754 printf(" Going trough list with nextElement(el) func: "); 755 name = list->firstElement(); 756 while(c < 20) 757 { 758 printf("%s,", name); 759 name = list->nextElement(name); 760 c++; 761 } 762 printf("\n"); 763 764 726 765 727 766 }
Note: See TracChangeset
for help on using the changeset viewer.