Skip to main content

Input and output in C++

1 min read

Now this video is for I have a post of this already, but as always a video is a better learning tool for some people.

Here's the link =)


Creating and running C++ file

1 min read

Hello this is a video for which I already did, but a video always explains it better.


C++ coding conventions

1 min read

This conventions, they all come from a set of rules or guidelines called The Zen of Python, written by Tim Peters, these were originally made for Python, but since there are a lot of similarities in both languages, they can be used in C++ as well.

These rules mainly talk about order in your code, because somtimes if you are disorganized, it's very hard to understand someone else's code.

So that's why it's a very good idea to follow the guidelines, because it helps others, and it helps you.

I'm going to leave the link were I learned about these conventions.


Creation and use of strings in C++

1 min read

Hello here's another video, now it's about strings, I hope you like it people.


Use of loops with "for"

1 min read

I'm going to leave a video explaining briefly about the for loop, I hope you like it.


Use of "switch" as a conditional

1 min read

This switch thingy is a very useful tool, because instead of nesting many conditionals, you can be very specific, on the response of the program in which case.

As you can see you can add as many cases as you want, but you need to add "break" at the end, if not the default answer will also show up, that why when I typed in 3 goals, it shows the two answers.

If you get the hang of this tool, you will have many posible solutions for coding issues you may find.


Creating your own and using C++ libraries

1 min read

As a programmer you're going to find out that the libraries in C++ are limited, so sometimes you're going to need to create your own libraries, this is actually very tricky.

Had to look up for some videos, I'm going to leave the links of a couple of them.

Once you've created your own library, you need to add it to your program file, just as you did in the WSQ of YoSoy196.

In order to call your library you need to type in this "whatevernameyouhave.h" so the program can us the library.

I hope these links and my explanation can be useful.



Basic types and their use in C++

1 min read

First let my show you a screenshot of the basic types in C++, you are going to be using these a lot while programming, there are many others, but these are the basic.

I found this webpage very useful to learn about all the basic types and how you can use them, check it out.


Nesting of conditional statements

Nesting of conditional statements

At this point we already know how to use conditionals, but we can have one conditional inside the other. This is in order to have several options of answers of the program in use, or many other options.
This is very useful because with only con conditional there's no much place to work, but you can add as many conditions as you want to your code, and the posibilities are huge.
In my example there are two conditions, one to let you know that you passed, and the other, in case your grade is above 9 points, it congratulates you.
It's very easy to do and it will be coming handy.