Hi! This is about how to use comments in c++. When you are typing a code and you are not the only one who is using it, its important to make comments on it. This helps the user to understand easier what each line is for. Comments can be used to transmit any type of message without interfering with the code at all.

 

How do you make a comment in a c++ code?

In the moment you type “//” the system recognizes this as a comment section and “ignores” what is after it when compiling.

WATCH MY VIDEO https://youtu.be/F_7Y8yXBmDQ

CC BY 4.0 #Mastery07 – Use of comments in C++ by Ricardo Newton is licensed under a Creative Commons Attribution 4.0 International License.