consolidate all repos to one for archive

This commit is contained in:
2025-01-28 13:46:42 +01:00
commit a6610fbc7a
5350 changed files with 2705721 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#include <iostream>
#include "LinkedList.h"
int main() {
std::cout << "Hello, World!" << std::endl;
LinkedList<int> list;
std::cout << "List " << (list.isEmpty() ? "IS" : "IS NOT") << " empty." << std::endl << std::endl;
list.add(1);
list.add(4);
list.add(10);
list.insertAt(2,5);
std::cout << "List " << (list.isEmpty() ? "IS" : "IS NOT") << " empty." << std::endl << std::endl;
std::cout << "List (size " << list.getSize() << "): " << std::endl;
for(int i=0; i<list.getSize(); i++)
std::cout << list.at(i) << std::endl;
list.insertAt(3,3);
std::cout << "\n";
for(int i=0; i<list.getSize(); i++)
std::cout << list.at(i) << std::endl;
return 0;
}