Just going to point out not everyone can read code.
Reading code is actually remarkably easy (though in this particular case it might be a little complicated since the important code is spread out over several different files).
Here is your basic "Read C++ in 30 seconds" lesson:
- .cpp files hold the content of the program; .h files act as a "roadmap" to the .cpp files
- int --- integer, stores numbers
- bool --- boolean, True/False
- name(x) --- Functions. These do things. Lots of times you can find said function by searching for "::name("
- name --- Variable. These hold particular bits of data
- name.name(x) or name->name(x) --- a function referenced by something else (these are usually defined in a separate file)
- name.name or name->name --- a variable referenced by something else (these are usually defined in a separate file)
- If (x == y) {stuff} --- If whatever is in the () is true, then do the things in the {}
- else if (x == y) {stuff} --- acts like if, but is only checked if a prior if() or else if() is false
- else {stuff} --- what they do if all the if()'s and else if()'s are false.
- '&&' means "and", '||' means "or"
- 'A = B' means "set A equal to B", 'A == B' means "is A equal to B?"
- '>', '<', '>=', and '<=' ask "is A *insert math comparison here* to B?"
- '!' means "not", so 'A != B' means "is A not equal to B?"
- '+=', '-=', '/=', and '*=' mean "Set new value of A equal to old value of A +/-/divided by/* B"
Congratulations! You now can read basic C and C++ code. If you find a symbol you don't understand, look
here, if you find something else you don't understand,
Google "C++ *insert confusing thing here*", and if you don't have a program to read code with and you are on a Windows, download
Notepad++ (Which I highly suggest you grab even if you aren't a programmer, it's a very nice text editor).
And if you desire to learn to program (which is much easier then it's made out to be) I highly suggest you check out
Learn Python the Hard Way. Python is a remarkably easy language to learn and program in, and once you've learned one language you have already mastered 90% of the knowledge required to learn all the other ones. From there it is only a small step to learning C/C++, and at which point I happily refer you to the
Learn C the Hard Way site.