This kind of thing isn't cemented until you practice it. So, instead of reading the manual and saying you don't understand it, write the code out. Write it, do not copy and paste, because then you know it will work and have therefore, learned nothing in the process. You need to go through your trials and tribulations period like everyone else. Yes, it's frustrating in the extreme when nothing seems to work, that's programming. Beginners can't get code to run, professionals though, their code runs but there might be bugs buried way deep down they need to find and eliminate, so while in part it gets easier, it really doesn't. Programming is a very exact and exacting science.
The computer is dumb, it really can't make decisions, it does what you tell it, and only what you tell it, and sometimes the beginner programmer doesn't understand what they're telling the computer to do. An example is:
int bullets = 7;
if (reload_complete)
{
bullets == 7;
}
OK, that's not real code or even good code, but it demonstrates a point. Look at the double equal sign, which means test equality of. What that meant to do was set bullets to 7. bullets == 7 is an expression that would evaluate to true or false.
Facts with Tom MacDonald, Adam Calhoun, and Dax
End racism
End division
Become united