Sorry if this is in the wrong section of the forum, i wasnt to sure on where to put this.

I want to learn how to prevent someone hacking into my PC or learning about me. I understand about normal internet personal information. Theirfore i never put any up and so on. But what i want to learn is how do i know when someone is trying to hack me and if they are should i stop them. I know by turning off my power and disconnecting my PC iis a good idea lol but i wanted to learn how to understand how they are getting in and how to stop this. So if there are any articals, programming books (mainly in C++) that anyone can pass on that would be amazing.

Thanks <3 TriG0rZ