Skip to content

Commit

Permalink
update(main): add example and fill readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohith-Raju committed May 12, 2024
1 parent 9eb021a commit 9b05ec4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
//
// Created by Rohith on 1/10/24.
//
#include "LinkedList.h"
#include "iostream"

int main() {
LinkedList<int> LList = {1, 2, 3, 4, 5};

for (auto item : LList) {
std::cout << item;
}

return 0;
}
40 changes: 40 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# LinkedList
This project consits of templated version of linear linked list that mimics the style used in C++ standard template library.
This project was done to learn, understand and practice concepts specifically tied to C++.

## Prequisite
This project uses C++17 and cmake version 3.27.

## Usage
```c++
#include "LinkedList.h"
#include "iostream"

int main() {
LinkedList<int> LList = {1, 2, 3, 4, 5};

for (auto item : LList) {
std::cout << item;
}

return 0;
}
```

## Testing
`Gtest` is used as the testing framework. To build tests

```
mkdir build && cd build
cmake ../
cd testing
make
```

To run the tests

```
./LinkedList_test
```


0 comments on commit 9b05ec4

Please sign in to comment.