answersLogoWhite

0

There are two ways:

The single line comment with a double slash //. Everything after the double slash on a single line is commented out.

The multi-line comment using a /* to open, and a */ to close.

A good IDE will color code the comments instantly.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you program games with c plus plus?

Yes, you can program games with C++.


How to restart c plus plus program?

Exit the program and relaunch it.


Create a c plus plus program to generate Fibonacci series?

#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout


Create a c plus plus program that displays odd numbers between 15 and 30?

for (int i = 15; i < 30; i += 2) cout << i << endl;


Lint is a compiler b a interactive debugger c a cinterpreter d a tool for analysing c plus plus program?

d a tool for analysing c plus plus program


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


Where did C plus plus program come from?

C++ is an extension of C, and was invented by Bjarne Stroustrup.


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Can you rewrite a cuda file in c c plus plus language?

Yes, you can rewrite a cuda program originally written in c in c plus plus.


What is a C plus plus game project program?

A C++ game project program could either be a game written in C++ or a C++ library that helps you develop a game.


A new programmer whom you are training is writing a C program and wants to place comment lines in the program what characters should be used at the beginning and end of the comments?

if single line comment just place // before for single line comment else if multiple line denote as like this /*............................. ..............................*/ Strictly speaking, // is non.standard in C only in C++