Tag Archives: #Mastery07

Mastery 07

Para poder usar comentarios en c++ solo tienes que poner los siguientes caracteres:

/*

Tus comentarios

*/

como en la siguiente imagen

Mastery07

7.Use of comments in Python

Mastery07

use of comments in c++

here is the link for an example code:

https://github.com/Hoyos1148/Mastery07/blob/master/comments

here is the link for the video:

https://www.youtube.com/watch?v=3_D80j5i_UM

#Mastery07 #TC1014

Use of comments in python.

Youtube link:

https://www.youtube.com/watch?v=U4fKd2cXl2Q

#Mastery07

Use of comments in C++

Para usar comentarios en C++ es necesario poner siempre // seguido del comentario o texto a poner.

Un comentario no genera errores en los programas mientras se usen de la manera correcta, y tampoco aparecen en el programa a la hora de correrlo.

La manera de introducir un comentario con // es solo para comentarios en la misma linea del código, si se quiere hacer un comentario que abarque varias lineas de codigo es necesario hacerlo de esta manera: “/* texto */” 

Asi podemos hacer comentarios en un código sin que aparezcan a la hora de correr o que generen un error.

Aquí un ejemplo de lo anterior: 

#Mastery07

#MASTERY07

Hello !! here is my video of how to use comments in c++ 😀 :D!!

https://www.youtube.com/watch?v=Srs1CWKAijo&feature=youtu.be

Use of comments in Python

 – Use of comments in Python                                                                          @PablO_CVi

Comments are tracks that the programer can add to the code, this won`t change anything in the program, this is just for helping the person that is going to use the code. For adding a comment in Python you just have to put a hashtag like this:   goes your comment. This is how you can add comments to your code in python. Here you can see that this does not modify the program.

Here is the code i used for this program: https://github.com/PablOCVi/Mastery/blob/master/Mastery07.py

Untitled

Use of comments in C++

El uso de comentarios es muy sencillo, se usan para explicar el funcionamiento del código,

para insertar un comentario es necesario poner dos diagonales “//” antes de cada comentario y así ya no afectamos a nuestro código.