Programming Basics C++, Upcoming Content + Thanks!!!!

Words
505
Reading
3 min
Listen
Play
3y

Hi everyone!!

This is my first post in the programming & dev community, but I want to thank the OCD community for the support in my last post it's been crazy!!

This inspires me to keep creating content I can share with everyone.

hivebanner.jpg

I am about to start another period at my University And I will be sharing some tips/guides on how to solve different problems in the signatures that are mostly related to programming and more technology stuff!!!

I am working on different kinds of posts related to other topics as I said related to HIVE, Gaming, and blockchain but not only technology-related stuff, even though this is my strength, I also have a passion for gaming, music, and art in general. as I dive deeper into this new world, I hope to bring guides and explanations about different topics related to this.

Here I leave an introductory guide to Programming with an example so we can start coding from the beginning, explained in each line of code, hope you can play with the program!

codeblocks.png

Using an IDE like CodeBlocks, DevC++, or others you can execute this program, or rewrite it yourself, here I combine different instructions that are used in almost all kinds of programs and also in different languages.

Here is the full code with the description of each instruction:

full code.png

I will explain each section, and you will see it's not hard.

First, we just add libraries, which are a set of modules that can be used in a program or another library. Also, namespace is just a rule and main(){} is how you start the program. and double cm means that we create a variable named "cm" that is type double(it can be a string for characters, you can google types in C++)

code1.png

Second, we use cout(command out) that prints something for the user to read, and then the command cin(command in) to read something that the user inserts, you remember it was a double type variable called cm

code2.png

Finally, ok this is the hardest part I think, but with this, you can do multiple interesting programs, so first, we use the IF condition, it says that IF something we say is true, then it will execute the next command, and ELSE IF, works the same if the firsts IF it's false then we go to the next ELSE IF and if that is true it will execute, if not we do the same for the last condition.

code3.png

We can use just one condition or two it depends on what we want to do, we can change the operation inside the parenthesis to change the logic, I hope if you have no experience you have learned something new today!!

If you have any questions leave them in the comments I will answer them!
Or any recommendations If you are interested in programming or you already have the knowledge you can recommend a topic to check, I'm just starting from where I started too.

Thanks so much for your attention!!, keep coding!!!

thanks.png

Programming Basics C++, Upcoming Content + Thanks!!!! | Ecency