Well, what is your question? You gave us some good knowledge in history but forgot to state your problem. You pasted the code, removed the comments, saved it into your project in CB, and ran it. This is what you've said. Now, what? You were not able to run it? CB didn't detect compiler installation? Code didn't compile? You've got a bunch of error messages you don't know how to fix? What?

> Keep In mind I am a noob and I thought source code was the main thing just type It In and Boom.

Yes, source code is the main thing. After the compiler. If you've set your compiler correctly, and created your CB project correctly, it'll run.

> I am a beginner who has decided Insteaded of watching tutorials for years on end to get started Into It

Beginner? I'm afraid you're wrong about yourself. You must be a pro if you've been watching tutorials for years, no?

>
Also how would I setup Codeblocks properly?

The default setup is the best for beginners. The only thing you need to do yourself is maybe fix the compiler (and debugger) installation directory yourself in CB > Settings > Compiler > Toolchain executables (and CB > Settings > Debugger > Default)