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.
to write the comment
start the comment by /* and end the comment by */ . everything inside that /* and */ is called comment
/*this is a comment*/
/*this is a comment
this is also comment*/
some compiler also support this way
// is a comment on that line only.
if your comment is multi line, you should put // on the begininng of every line
//this is a comment
//this line is also comment
this line is not comment
d a tool for analysing c plus plus program
how to create a c program for left factoring.
Every C plus plus program that is a main program must have the function 'main'.
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++
example output of c++ calculator
Yes, you can program games with C++.
#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout
for (int i = 15; i < 30; i += 2) cout << i << endl;
Exit the program and relaunch it.
You can create an exe-file from your C++ source, if you have a compiler.
d a tool for analysing c plus plus program
how to create a c program for left factoring.
By learning how to program on C+.
C++ is an extension of C, and was invented by Bjarne Stroustrup.
Every C plus plus program that is a main program must have the function 'main'.
Yes, you can rewrite a cuda program originally written in c in c plus plus.
Yes. You can either create a file for both reading and writing, or you can re-open a file for reading after creating and writing to it.