I just made a sample block chain of 3 blocks using a Dave Nash sample program. It was old from 2017, and a CLION Linux c++11
Here's the hashes of the block chain.
This hash was set to difficulty 6 level and took an hour to compute the three hashes.
I upgraded the program to Visual Studio 2022 C/C++ 20/17.
Block1.h
Blockchain1.h
Block1.cpp
Blockchain1.cpp
Main.cpp
I started with an Windows C/C++ empty console app
Set Difficulty to 1 for debugging. It takes a few seconds.
I used Zending SHA256 2 ON GITHUB FOR
SHA256
SHA256.CPP Are these three photos.
Have a great one
Dave Nash also has this program at github
https://davenash.com/2017/10/build-a-blockchain-with-c/ tutorial