"Oh say, can you C?"
A storage of Source Code bits and pieces written in C and C++.
Collection of standalone applications of high-performance code in pure C, for solving CPU-intensive computational problems. Files are structured into directories, according to the level of complexity, origin and purpose.
LeetCode challenges, algorithms, data structures, etc.
- Arrays 101
Applied math: number theory, linear algebra, complex numbers, etc.
- 64-bit prime integers calculator
- Fibonacci series
- approximate pi with the Nilakantha series
- algorithm for generating Mandelbrot set based on Source
Quantitative finance models and algorithms
- mortgage calculator
- perpetuity PV calculator
Astronomy, cryptography and other exciting stuff
- algorithm for approximating Lagrangian points L1, L2, L3 for Moon-Earth, Earth, Mars, Jupiter
- RSA encryption keys generator
- Caesar cipher for strings encryption
Simple programs that do not fall into any particular cathegory
To make the source code executable, you need to compile it first. Source code follows C11 standard. Make sure your compiler is up to date or at least can handle C99.
Clone repository
git clone https://github.com/lialkaas/ican-c.gitNavigate to the folder in Terminal
cd ~/ican-cCompile Source code into executable. Likely, in UNIX system cc stands for alias of installed compiler. If not, call the name of your compiler directly (e.g. gcc, clang, etc.)
cc filename.c -o filenameNote: some apps depends on math.h, that requires -lm flag for compiling.
cc filename.c -o filename -lmFinally, run executable by calling it
./filenameCompile C++ code with clang++ and flags
clang++ -std=c++2a -Wall -O1 filename.cpp -o filename.oCopyright (c) 2021 Oleksii Lialka
Licensed under the MIT License.