glenngartner / arrays_and_linked_lists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic Array vs Linked List data structures

An interactive console application implementing linked lists in C++. It's a toy app, intended to experiment with and test a few features. The code was written and compiled against a gcc compiler, so it should compile on Windows (minGW), OSX, and Linux.

Dependencies

Have cmake installed, and accessible in your path (ie: you should be able to launch cmake from your terminal).

Run / Debug

If your IDE supports CMake configurations directly (using the CMakeLists.txt file), like Visual Studio 2017 or CLion, just open the project root folder in your IDE. You can then run or debug the app without running CMake. If you want to use XCode, Visual Studio with a .sln file, or another IDE, then generate your project files with cmake (next section).

Generate Project Files

If you want to generate project files for your IDE of choice (Visual Studio solution, XCode, etc), and build from source, cd to the project root directory in your terminal. Then, change to the build directory, launch cmake, and direct cmake at the project root, like so:

{project_root}> cd build/
{project_root}/build> cmake .. # direct cmake up one directory, to the project root, where the CMakeLists.txt file resides

Cmake will generate project files, and deposit them in the build folder (or the folder you launched CMake from). Now you can open and compile the project in your IDE.

Compile

Compile the project in your IDE. If you chose UNIX Makefiles during cmake configuration, then run make from the build directory:

{project_root}/build> make .

Binaries

If you don't want to build yourself, I've added windows (.exe) and OSX (unix executable) binaries in the bin/ folder. Download, and launch them directly.

About


Languages

Language:C++ 98.7%Language:CMake 1.3%