I am new to modern c++, so I have difficulties to separate header and cpp file with below code (AES encryption and decryption). For example, how would I separate the code?
https://gist.github.com/edwardstock/3c992fb71320391d3639696328a61115
I am new to modern c++, so I have difficulties to separate header and cpp file with below code (AES encryption and decryption). For example, how would I separate the code?
https://gist.github.com/edwardstock/3c992fb71320391d3639696328a61115
Your API goes to the header file. That includes:
The implementation of this API goes to the CPP file:
There are exceptions, like inline function definitions might still go to the header, and templates might have to be in header files as entirely, but this is the general overview.