Really? You ask me how to program with C? lol you must be joking.
But on a serious note, I can do some C stuffs, and I can teach you the basic of C programming.
So what the heck is programming?
Programming is something that you do to make a program that solves… things.
No, really, in this kind of method (my method, lol), you only C programming (hehe) as something that do some counting shit. The more advance using of programming, idk how that’s my job to learn it in the future.
Okay then, programming is making a program, so how do you start?
The most basic program you can use is C. And C and its derivative are the fundamental thing on programming. But with my way, we will use it for solving numbers… stuff.
The first thing you need to do is install the IDE.
“THE HECK IS IDE” Well, IDE stands for Integrated Development Environment, which is basically something that helps you to program, from writing, checking, executing, and more. The IDE you can use for my tutorial is DevC++ or Code::Blocks. I personally use Code::Blocks because there is an autocomplete feature that helps you when you’re too lazy to write. I am lazy too don’t worry.
CODEBLOCKS LINK (use the binary release)
For DevC++ idk too much lol I am gonna teach you only from codeblocks. But don’t worry programming with DevC++ is pretty much the same if you ask me.
First thing first, look at the top right.
See that picture of page with plus? yea that means ‘New’, I am gonna slap you if you didn’t get this. The right of it is load, one more right is save. Didn’t you understand Microsoft Word?
Click that page thing button. After that you see this menu. Click on the project. Don’t worry, I also didn’t know why the other thing is there also. Why project, you may ask. Because if it is not project, you can’t check it, you can’t debug it, and you can’t compile it. THERE IS NOT EVEN AN AUTOCOMPLETE 😦 so yeah I suggest you to do this.
WTF is this, Wraith?? This is uhhhhhhh menu that choose what kind of application you want to make. For this tutorial, Just click Console Application, and you’re good to ‘go’. (See the top right of the picture)
TO BE NOTED, DO NOT use Space character on your program’s name. There is something not good behind it so for your own sake don’t do it.
Then press next, and then next blah blah blah. You’re done! Wait a bit.
The Windows icon- I mean, the CodeBlocks icon, if the word beside it is BOLD, it means that that project is an active project, that you will build, run and bla bla bla.
Click sources twice, then click on the main.c twice also, and then…
No, just kidding. You’re not a coder. That code you see is a template for any main.c file for a new project.
Now press F9.
F9 basically a shortcut for ‘Build & Run’. Or I would say, ‘TEST MY PROGRAM NOW’.
Or if you want some conventional clicking, below the dropdown menu, there is a button with GEARS and PLAY icon, beside the blue recycle icon. That’s the button for build and run. Go explore other things inside codeblocks, maybe you’ll find something useful.
just go i am your dad
So that’s all the basic thing for introduction for C programming. Next up we CODE, real CODE. cya