Unoptimized code that I wrote while I was learning advanced features (e.g. templates) of C++ in 2021.
Just run the following commands in a linux terminal to start training a small network to learn how an XOR gate.
g++ nn.cpp -o out.o // compile
./out.o // execute